springboot警告:ApplicationContext is unlikely to start due to a @ComponentScan of the default package
2017-11-06 16:34
961 查看
springboot警告:ApplicationContext is unlikely to start due to a @ComponentScan of the default package
1. 警告解读
** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
如果你的springboot项目报了这个警告,那么你的项目会无法正常运行。
// 该警告解释为 : ApplicationContext 不能从一个组件的默认包启动
2. 如何解决
既然他说该类不能从组件的默认包启动,那就给他建立一个包好了。// 一般发出这个警告的原因是你把启动类直接放在的src目录下面。 // 你需要在src目录下面再建一个包,比如controlcenter,然后把启动类放到controlcenter下面。
相关文章推荐
- Java问题解决:springboot启动出现-Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- spring boot 报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default p
- Springboot启动报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
- spring boot 报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default p
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- 解决错误:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- ** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
- springBoot启动错误 Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
- springboot的启动Your ApplicationContext is unlikely to start due to a @ComponentScan of the default pac
- spring boot 报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
- 从eclipse中导入到IDEA中的SpringBoot项目,启动时报错 Unable to start EmbeddedWebApplicationContext due to missing Em
- IDEA执行spring boot 出现Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
- IDEA启动spring boot 出现Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCont
- SpringbootUnable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFact