Could not obtain transaction-synchronized Session for current thread

来源:互联网 发布:php招聘 编辑:程序博客网 时间:2024/04/30 12:23
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread

    因为没加事务:

在manager类方法中加入事务

@Transactional(readOnly=true)

0 0
原创粉丝点击