SpringBoot项目报错:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
以下方案80%可以帮助您解决这些个‘可恶的’问题
报错内容和截图如下:
Connected to the target VM, address: '127.0.0.1:4963', transport: 'socket'
. ____ _ __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '| | ’ / ` |
/ )| |)| | | | | || (| | ) ) ) )
’ || .__|| ||| |, | / / / /
=========||==============|/=///_/
:: Spring Boot :: (v2.3.10.RELEASE)
2021-12-25 14:52:41.578 INFO 13204 --- [ main] m.c.DiitMicrosoftserviceCheckApplication : Starting DiitMicrosoftserviceCheckApplication on 老云的计算机 with PID 13204 (D:svnworkspace_nxzrbhdztGh_yizhangtudit-check argetclasses started by liuyundashen in D:svnworkspace_nxzrbhdztGh_yizhangtudit-check)
2021-12-25 14:52:41.583 INFO 13204 --- [ main] m.c.DiitMicrosoftserviceCheckApplication : No active profile set, falling back to default profiles: default
2021-12-25 14:52:43.485 INFO 13204 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-12-25 14:52:43.503 INFO 13204 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-12-25 14:52:43.504 INFO 13204 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.45]
2021-12-25 14:52:43.668 INFO 13204 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-12-25 14:52:43.668 INFO 13204 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1979 ms
2021-12-25 14:52:43.832 INFO 13204 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2021-12-25 14:52:43.910 ERROR 13204 --- [ main] com.alibaba.druid.pool.DruidDataSource : testWhileIdle is true, validationQuery not set
2021-12-25 14:52:43.917 INFO 13204 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
_ _ |_ _ _|_. ___ _ | _
| | |/|_)(_| | |_ |_)||_|_
/ |