No qualifying bean of type ‘org.springframework.transaction.PlatformTransactionManager‘ available

问题描述
Spring Boot配置两个数据源和和两个相关的事务管理器,添加@Transactional注解报错
org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.transaction.PlatformTransactionManager' available: expected single matching bean but found 2: capabilityDataSourceTransactionManager,tmsTransactionManager
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNam

No qualifying bean of type ‘org.springframework.transaction.PlatformTransactionManager‘ available最先出现在Python成神之路

版权声明:
作者:倾城
链接:https://www.techfm.club/p/26943.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>