摘要:
使用@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 阅读全文
posted @ 2011-05-17 11:31
highriver
阅读(1737)
评论(0)
推荐(0)

浙公网安备 33010602011771号