springboot available: expected at least 1 bean which qualifies as autowire candidate

springboot available: expected at least 1 bean which qualifies as autowire candidate
奇葩问题
springboot available: expected at least 1 bean which qualifies as autowire candidate

问题:
报启动失败,oss的bean没有注入
分析:
1.之前可用,配置文件没有改,启动类扫描配置没有变更
2.注解没有变更,相关引入都加入了@Autowired
3.可能是因为bean里面有相同的bean的名称
结论:
跟其它提交的内容有关,可能是引起冲突,进行bean排查,发现bean的名称起的不够有辨识度

上一篇:在windows下改装gvim为python的IDE


下一篇:ASP.NET Global.asax详解