zoukankan      html  css  js  c++  java
  • no applicable action for [springProfile], current ElementPath is [[configuration][springProfile]]

    今天down了一个开源项目,启动后一直存在如下错误信息:

    ERROR in ch.qos.logback.core.joran.spi.Interpreter@26:42 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
    ERROR in ch.qos.logback.core.joran.spi.Interpreter@27:50 - no applicable action for [logger], current ElementPath  is [[configuration][springProfile][logger]]
    ERROR in ch.qos.logback.core.joran.spi.Interpreter@30:35 - no applicable action for [springProfile], current ElementPath  is [[configuration][springProfile]]
    ERROR in ch.qos.logback.core.joran.spi.Interpreter@31:50 - no applicable action for [logger], current ElementPath  is [[configuration][springProfile][logger]]

    按照官方文档将logback.xml改为logback-spring.xml后问题解决。


    logback.xmllogback-spring.xml都可以用来配置logback,但是两者的加载顺序是不一样的,具体顺序如下:

    logback.xml--->application.properties--->logback-spring.xml

    从上边的加载顺序可以看出,logback.xml加载早于application.properties,所以如果你在logback.xml使用了变量时,而恰好这个变量是写在application.properties中,那么就会获取不到,报上边的错误信息。

  • 相关阅读:
    Jmeter之Web测试(一)
    Appium 提高脚本复用、可配置性
    Appium 解决中文输入问题
    Appium Python Driver Api
    Appium Android 屏幕滑动
    Android logcat使用
    android adb:电池与电量
    Loadrunner测试json接口
    python输出1到100之和的几种方法
    python 随机生成用户名、密码、手机号码
  • 原文地址:https://www.cnblogs.com/niceyoo/p/11839871.html
Copyright © 2011-2022 走看看