老师能看下可能报错的原因吗?谢谢

来源:3-3 引入内嵌servlet容器

慕设计2335229

2019-06-11

图片描述
老师能看下可能报错的原因吗?谢谢

Logging system failed to initialize using configuration from 'classpath:log4j2.xml’

2019-06-10 23:06:55.189 INFO 16237 — [ main] trationDelegateBeanPostProcessorChecker:Bean′org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration′oftype[org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfigurationBeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfigurationBeanPostProcessorChecker:Beanorg.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfigurationoftype[org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfigurationEnhancerBySpringCGLIBEnhancerBySpringCGLIBEnhancerBySpringCGLIB$10d48711] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

Logging system failed to initialize using configuration from 'classpath:log4j2.xml’
java.lang.IllegalStateException: Logback configuration error detected:

写回答

1回答

格鲁

2019-06-12

你如果引ogback需要把log4j.xml删除掉,如果你想用log4j那需要引入log4j的starter,可以看看springboot前几章有引入log4j的视频

0
1
慕设计2335229
非常感谢!
2019-06-15
共1条回复

Java从单体到微服务打造房产销售平台

单体开发,SpringCloud微服务改造,架构原理剖析,让你在大型项目中独当一面!

711 学习 · 349 问题

查看课程