spring+hibernate集成是出现 No Session found for current thread问题。
查了一下相关资料,才知道,原来要在spring中使用Hibernate的Session,需要在配置文件中申明事务。所有的操作都必须在事物中进行
spring+hibernate集成是出现 No Session found for current thread问题。
查了一下相关资料,才知道,原来要在spring中使用Hibernate的Session,需要在配置文件中申明事务。所有的操作都必须在事物中进行
转载于:https://my.oschina.net/u/2367628/blog/761145