Skip to content
微信扫码关注公众号

SprintBoot 启动报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

Application 启动报错:

Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

对策:

因为 application.Java 文件不能直接放在 main/java 文件夹下,必须要建一个包把他放进去。

参考

  1. http://blog.csdn.net/xocom/article/details/52523084 

  2. Springboot :BeanDefinitionStoreException: Failed to parse configuration class