您的位置:首页 > 移动开发

** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default

2018-01-03 14:23 906 查看


提示说的比较清楚,由于@ComponentScan放在了默认包下导致ApplicationContext无法启动。

Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$JdbcTemplateConfiguration due to internal class not found. This can happen if you are @ComponentScanning a
springframework package (e.g. if you put a @ComponentScan in the default package by mistake)

自己在默认的src/main/java下边再创建一个包,使用到注解的类放到自己的包下,可以正常启动。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐