欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Error starting ApplicationContext. To display the conditions report re-run your application with 'de

程序员文章站 2022-05-03 15:50:04
...

Error starting ApplicationContext. To display the conditions report re-run your application with 'de
在我的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包依赖信息)
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
(1)搜索你需要的依赖名称
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
(2)找到合适自己的版本,并点击相应的版本
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
(3)复制需要的依赖,over!