Hibernate: Unable to access TransactionManager or UserTransaction to make physical transaction delegate

后端 未结 3 2000
-上瘾入骨i
-上瘾入骨i 2021-01-02 15:43

I was using Servlets, PostgreSQL and Hibernate with EntityManager to build a Web app and everything was working ok until I moved the project to a Maven based project. Now I\

3条回答
  •  死守一世寂寞
    2021-01-02 16:21

    Add @Transactional to your DAO and the class accessing your DAO class.

    Refer: http://spring.io/guides/gs/managing-transactions/

提交回复
热议问题