springBoot启动报错Error starting ApplicationContext
程序员文章站
2022-05-25 11:54:02
...
错误:
Error starting ApplicationContext. To display the auto-configuration report
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-09-05 09:02:14.985 ERROR 8444 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
之类的
解决:
需要在启动类的@EnableAutoConfiguration或@SpringBootApplication中添加exclude = {DataSourceAutoConfiguration.class},排除此类的autoconfig。启动以后就可以正常运行。
其中之一、未完待续、有待完善。
推荐阅读
-
SpringBoot启动报错Failed to determine a suitable driver class
-
springboot启动报错Failed to configure a DataSource: 'url' attribute is not specified
-
MySQL启动报错问题InnoDB:Unable to lock/ibdata1 error
-
Springboot启动报错时实现异常定位
-
Tomcat启动报错:org.apache.catalina.LifecycleException: Failed to start component...java.util.zip.ZipException: error in opening zip file
-
Tomcat7启动报Error starting static Resources错误
-
初学者启动springboot报错
-
springboot启动feign项目报错:Service id not legal hostname (LCN_TEACHER)
-
springboot框架maven构建fastJson启动报错
-
启动报错 Error listenerStart