Logging system failed to initialize using configuration from ‘classpath:logback.xml’
java.lang.IllegalStateException: Logback configuration error detected:
exclusion
很多boot项目配置完日志文件后,启动报这个:
Logging system failed to initialize using configuration from 'classpath:logback.xml'
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.spi.Interpreter@4:84 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@5:80 - no applicable action for [springProperty], current ElementPath is [[configuration][springProperty]]
基本遇到这个问题貌似看到报错,基本就排除jar包了,其实是因为内置jar的原因,我们可以把这个 [logback.xml]命名换掉,如[log-config.xml],然后别忘了logging.config = 的配置也要更换哦,然后启动。
本文详细解析了在Spring Boot项目中遇到的Logback初始化失败问题,常见错误信息为Logback configuration error detected,并提供了具体的解决方案,包括修改配置文件名称和更新logging.config配置。
4663

被折叠的 条评论
为什么被折叠?



