摘要:
使用@Autowired注释进行byType注入,如果需要byName(byName就是通过id去标识)注入,增加@Qualifier注释@Qualifer如果没有的话, 报的错如下:No unique bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: [transactionManager, jmsTransactionManager]原因:比如配置文件中有二个bean.<bean 阅读全文