No bean named 'transactionManager' is defined

前端 未结 4 1864
囚心锁ツ
囚心锁ツ 2020-12-06 04:51

I have configured two persistent units with the entity managers set up as show below:



        
4条回答
  •  春和景丽
    2020-12-06 05:19

    The default value for the transaction-manager attribute is transaction-manager. In your case, you should specify which transaction manager you want to use per method or service like this:

    @Service
    @Transactional(value="LiveTransactionManager") 
    class someClass...
    

    or

    @Transactional(value="ArchiveTransactionManager") 
    public void someMethod
    

提交回复
热议问题