美文网首页
ERROR in ch.qos.logback.core.jor

ERROR in ch.qos.logback.core.jor

作者: 王月亮17 | 来源:发表于2022-09-15 10:08 被阅读0次
    11:36:19,493 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@38:33 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
    11:36:19,493 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@39:28 - no applicable action for [root], current ElementPath  is [[configuration][springProfile][root]]
    11:36:19,493 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@40:45 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,493 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@41:42 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,493 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@42:47 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,493 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@46:31 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@47:28 - no applicable action for [root], current ElementPath  is [[configuration][springProfile][root]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@48:45 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@49:42 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@50:47 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@54:32 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@55:29 - no applicable action for [root], current ElementPath  is [[configuration][springProfile][root]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@56:45 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@57:42 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@58:47 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@62:32 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@63:28 - no applicable action for [root], current ElementPath  is [[configuration][springProfile][root]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@64:45 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@65:42 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    11:36:19,494 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@66:47 - no applicable action for [appender-ref], current ElementPath  is [[configuration][springProfile][root][appender-ref]]
    

    SpringBoot启动项目报错,原因是项目中配置的日志文件的名称是logback.xml,logback会先与Spring之前加载日志配置,这时日志文件中的springProfile的配置是无效的。
    把logback.xml改为logback-spring.xml就可以了。

    相关文章

      网友评论

          本文标题:ERROR in ch.qos.logback.core.jor

          本文链接:https://www.haomeiwen.com/subject/bdlvbrtx.html