由于没有原因,我无法启动弹簧启动应用程序,原因是该日志,我不知道在哪里修复它,我只在应用程序吞吐量上就有baic springbootapplication就是
在此处输入图像描述
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-02-25 20:54:39.204 ERROR 6404 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/Users/petmik/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.0.BUILD-SNAPSHOT/spring-boot-autoconfigure-2.0.0.BUILD-SNAPSHOT.jar!/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration.class]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration due to org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseType 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)
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:454) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE] .................
您似乎还没有提到dataSource配置。Spring Boot无法自动配置数据源。为此,请在application.properties中添加一些属性。
参考您可以设置的所有属性的DataSourceProperties。
您需要提供适当的URL和驱动程序类名称:
spring.datasource.url = …
spring.datasource.driver-class-name = …