前言
最近在学习springboot整合springcloud,在建moudle时,没有启动类,就自己加了一个启动类,启动项目时,就报了下面的警告
2019-12-24 13:16:52.188 INFO 12580 --- [ main] EurekaApplication : No active profile set, falling back to default profiles: default
2019-12-24 13:16:52.204 WARN 12580 --- [ main] ionWarningsApplicationContextInitializer :
** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
这个警告导致项目无法运行
错误目录:
bug解决方案
直接建一个包,正确目录
项目启动成功: