小编Cra*_*ro7的帖子

检测到 Logback 配置错误:[springProfile] 没有适用的操作,当前 ElementPath 是 [[configuration][springProfile]]

我有一个带有 Logback 的 Springboot 应用程序。这场战争正在 Docker 容器中的 Liberty Web 服务器中运行

版本:Springboot 2.5.3 Logback 1.2.3

我看到一个奇怪的行为,如果我在 Mac 或 Redhat 上运行此容器,应用程序会正常启动并按预期记录。但是,当在 Ubuntu 中运行相同的 docker 容器时,我从 Logback 的 Joran 解释器中看到以下错误:

...
08:07:53,308 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework] to WARN
08:07:53,308 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.hibernate] to WARN
08:07:53,308 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [springfox] to WARN
08:07:53,313 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@88:32 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
08:07:53,313 |-ERROR …
Run Code Online (Sandbox Code Playgroud)

java ubuntu logback spring-boot

2
推荐指数
2
解决办法
3453
查看次数

标签 统计

java ×1

logback ×1

spring-boot ×1

ubuntu ×1