org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
解决方法
hibernate的配置中加上
<prop key="hibernate.current_session_context_class">thread</prop>
spring and hibernate中的一些错误的解决方法
最新推荐文章于 2024-01-29 11:11:07 发布