Error starting ApplicationContext. To display the conditions report re-run your application with 'de
程序员文章站
2022-05-03 15:50:04
...
在我的Spring-Boot项目中,出现在这个错误的原因是因为导入了Druid的数据源,配置了Druid的监控,但是没有引入Maven依赖log4j。
解决办法:在项目中的文件pom.xml中添加log4j的依赖
<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency>
附:Maven库官网:https://mvnrepository.com
(该官网提供pom.xml文件中所需要的jar包依赖信息)
(1)搜索你需要的依赖名称
(2)找到合适自己的版本,并点击相应的版本
(3)复制需要的依赖,over!
推荐阅读
-
SpringBoot报错:Error starting ApplicationContext. To display the conditions report...........
-
springboot错误:Error starting ApplicationContext. To display the conditions report re-run your applica
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled
-
springboot启动报错,Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled