
解决启动报错Consider defining a bean of type ‘xxx‘ in your configuration.
解决启动报错Consider defining a bean of type ‘xxx’ in your configuration.
报错截图
解决方法:查看注解是否同时存在@AllArgsConstructor/@RequiredArgsConstructor和@Value,如果同时存在,去掉构造函数注解。给bean加上@Autowired,,给非static修饰的常量去掉final修饰。 如:
👁️ 阅读量:0
© 版权声明:本文《解决启动报错Consider defining a bean of type ‘xxx‘ in your configuration.》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686559075a291925.html。