
错误:Consider defining a bean of type '*.UserService' in your configuration
启动springboot项目遇到一个问题:Consider defining a bean of type
原因描述: 项目已被分解为不同的模块,需要指定独立模块要扫描的类或包 解决方案:在对应的类标签上加上
@SpringBootApplication @ComponentScan("com.citic.core")👁️ 阅读量:0
© 版权声明:本文《错误:Consider defining a bean of type '*.UserService' in your configuration》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686550205a289286.html。