提示说的比较清楚,由于@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下边再创建一个包,使用到注解的类放到自己的包下,可以正常启动。