Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Struts2 + Hibernate。我在控制台中收到此错误:在 /test 处没有为 Hibernate Session 对象设置目标 - 方法:xxxa.action.TestAction.testFunc()。使用hibernatePlugin.sessionTarget属性或 SessionTarget Annotation。. 它只是警告还是错误?在这两种情况下,需要做什么?谢谢你。
我在使用 Struts2 + Hibernate 时遇到了同样的问题。拼图的每个部分都很好,数据库、pojo 类、字段……最后我解决了这个问题,只是将我的 java 类(DAO、Entity pojo 类、Action 类)放在一个包中,而不是一个空白的。
At the console.log line in the render method below, it shows that this.member instance is exactly what it should be. So member object is good. I've spit out the string in tpl and it'