码迷,mamicode.com
首页 > 编程语言 > 详细

Spring Boot 启动报错

时间:2017-12-08 12:00:14      阅读:1561      评论:0      收藏:0      [点我收藏+]

标签:cto   boot   url   nested   component   hat   admin   scan   release   

错误代码:

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/Users/Administrator/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.1.RELEASE/spring-boot-autoconfigure-1.3.1.RELEASE.jar!/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$JdbcTemplateConfiguration.class]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$JdbcTemplateConfiguration due to org/springframework/dao/DataAccessException not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)

错误原因 :

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

 

Spring Boot 启动报错

标签:cto   boot   url   nested   component   hat   admin   scan   release   

原文地址:http://www.cnblogs.com/choiyubo163com/p/8004322.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!