原文:泛型依赖注入出现required a single bean, but 2 were found

问题描述 项目使用了tkmybatis,然后在service层使用泛型抽取了公共的CRUD操作,结果在Controller层注入的时候提示 BaseService: AppService: AppReleaseService: BaseServiceImpl: AppServiceImpl: AppReleaseServiceImpl: AppController: 解决方法 将不能注入的bean ...

2020-12-15 09:17 0 3385 推荐指数:

查看详情

Field in required a single bean, but 2 were found:

我在其他类注入的时候出现以下错误 异常 Description: Field mibService in com.xxx.xxx.controller.SnmpController required a single bean, but 2 were found ...

Thu Jul 18 17:59:00 CST 2019 0 2986
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM