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

将启动类放到了java目录下了,你需要在java下面建包,把启动类放进去
第二是,你使用@ComponentScan指定包名

posted @ 2018-12-28 18:12  慢慢行  阅读(41)  评论(0)    收藏  举报