解决办法:
web应用,在hibernate.cfg.xml中添加:<property name="current_session_context_class">jta</property>
java应用,在hibernate.cfg.xml中添加:<property name="current_session_context_class">thread</property>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/1724534/viewspace-2123451/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/1724534/viewspace-2123451/