spring整合hibernate的时候报异常org.hibernate.HibernateException: createQuery is not valid without active transaction

  在整合Spring4+hibernate4时候,当代码执行到dao中CRUD操作时,报了一个异常, org.hibernate.HibernateException: createQuery is not valid without active transaction ...   因为我用到的...

Exception in thread "main" org.hibernate.HibernateException: save is not valid without active transa

  Exception in thread "main" org.hibernate.HibernateException: save is not valid without active transaction at org.hibernate.context.ThreadLocalS...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

社区圈子

Java开发者
Java开发者
Java开发者成长课堂,课程资料学习,实战案例解析,Java工程师必备词汇等你来~
287385+人已加入
加入