可能是因为没有用到 hibernatetransationmanage 导致没有初始化 sessionfactory
add transation where you use hibernatetemplate! good luck to you!
应该是事务问题 没有开启事务 查询 不需要用 事务
EntityTransaction tx = entityManager.getTransaction();
tx.begin();
save 操作
tx.commit()
show_sql是false
你把你写的这个类的代码能发一下吗 ?如果你不发的话就不知道你的super.getsession().save是怎么写的 还有抛出来的异常是什么你不写明白