程序员,贵在坚持

2019年3月30日

@Autowired注解与@Qualifier注解搭配使用

摘要: 问题:当一个接口实现由两个实现类时,只使用@Autowired注解,会报错,如下图所示 实现类1 实现类2 controller中注入 然后启动服务报错,如下所示: Exception encountered during context initialization - cancelling re 阅读全文

posted @ 2019-03-30 11:46 程序员,贵在坚持 阅读(17044) 评论(0) 推荐(3) 编辑

导航