文章目录
- 后端俩万管理系统官宣发布:
异常
***************************
APPLICATION FAILED TO START
***************************
Description:
Field liaWanConfig in com.javapub.liawan.admin.config.SwaggerConfig required a bean of type 'com.javapub.liawan.common.config.LiaWanConfig' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.javapub.liawan.common.config.LiaWanConfig' in your configuration.
Process finished with exit code 0
解决
添加全部bean包扫描:
@ComponentScan({“com.javapub.liawan.*”})
栗子:
exclude = {DataSourceAutoConfiguration.class})(
({"com.javapub.liawan.*"})
public class LiaWanApplication {
public static void main(String[] args) {
// System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(LiaWanApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 俩万启动成功 ლ(´ڡ`ლ)゙ \n");
}
}