
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans,....
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
报这个错是因为sringboot通过@Autowired注入接口的实现类时发现有多个,也就是有多个类继承了这个接口,spring容器不知道使用哪一个。 完整报错 解决方案 起因就是这里配置了这个
👁️ 阅读量:0
© 版权声明:本文《Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans,....》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686554636a290564.html。