如题,Spring+SpringMVC+Mybatic+JPA 多数据源时,不用分布式事务就用JPA事务,JPA 的事务交给 Spring来管理,多个数据源都要实现事务,能否实现,请有实际经验的高手来告知,并说出实现方案。如不能实现的话,能否配置多个EntityManagerFactory 后能否实现其中一个数据源的事务,请高手指教。我之前配置两个EntityManagerFactory 后,值实现其中一个数据源事务依然报错 No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 2