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.xml和logback-spring.xml都可以用来配置logback,但是两者的加载顺序是不一样的,具体顺序如下:
logback.xml--->application.properties--->logback-spring.xml
从上边的加载顺序可以看出,logback.xml加载早于application.properties,所以如果你在logback.xml使用了变量时,而恰好这个变量是写在application.properties中,那么就会获取不到,报上边的错误信息。
no applicable action for [springProfile], current ElementPath is [[configuration][springProfile]]相关推荐
- no applicable action for [triggerPolicy], current ElementPath
配置日志的时候报错 刚开始一直找不到原因,后来百度了好久才看到一个博主有过类似的问题,抓住报错的关键词 到配置行去找到他 看看是不是单词写的不对! 因为: 项目启动后,logback会寻找符合要求的x ...
- logback配置文件报错:no applicable action for [MaxFileSize], current ElementPath ...
logback是SpringBoot开发过程中常用的日志工具,在使用前需要设置配置参数,一般写在logback-spring.xml文件中. 问题现象: 配置完logback-spring.xml文件 ...
- logback ERROR *.Interpreter@* - no applicable action for [*], current ElementPath is [*]
>问题描述 在springboot中使用logback,出现一些ERROR内容: 15:12:03,094 |-INFO in ch.qos.logback.classic.LoggerCont ...
- elk日志启动异常:no applicable action for springProfile
现象 项目中加入logback-kafka-appender和logstash-logback-encoder的elk日志,启动时日志中出现下列错误 15:56:36,022 |-ERROR in c ...
- Logback新版本报no applicable action for [Encoding]问题
logback.xml配置文件如下: <?xml version="1.0" encoding="UTF-8"?><configuration ...
- no applicable action for [springProperty] logback异常
logback错误日志 no applicable action for [springProperty], current ElementPath is [[configuration][sprin ...
- ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:17 - no applicable action for [Properties], cur
来源: https://blog.csdn.net/m0_37034294/article/details/82801294 排除log包的冲突,并且检查对应标签: 我比较喜欢统一排除: <de ...
- 记录 logback加入springboot后多余的初始化日志
1.多余信息展示 17:44:37,371 |-INFO in ch.qos.logback.classic.LoggerContext[logback-xiaowu] - Could NOT fin ...
- SpringBoot文档翻译系列——26.日志logging
原创作品,可以转载,但是请标注出处地址:http://www.cnblogs.com/V1haoge/p/7613854.html 这是SpringBoot的日志内容 26 日志 Spring使用Co ...
最新文章
- [NC23486]小A与小B 双向广搜
- 计算机网络基础 — 网络设备 — 网桥(Bridge)
- 站点分析基础概念之目标转化率
- ThinkSNS 仿蘑菇街 社区购物分享系统
- apache-cxf 使用_使用Apache CXF进行Web服务学习
- centos6.8安装docker,kong-dashboard并实现页面访问
- Win 7 通过事件管理器查看计算机开机关机时间
- android wifi ap sta,WIFI的AP/Sta模式简单介绍
- ICML 2019收录774篇论文:谷歌153篇,清华北大26篇
- 国网的“好管家”——业务可视化管理平台
- BZOJ1012: [JSOI2008]最大数maxnumber [线段树 | 单调栈+二分]
- 三星获得加州自动驾驶测试许可,与Google苹果正面刚
- 翻译: 4.1 多层感知器MLP Multilayer Perceptrons pytorch
- iOS 9 Spotlight搜索 OC版
- 2021011206贾天乐实验二
- STI解读A:STI测量方法
- Nvidia AGX Xavier MAX9286 GMSL 载板(绿板)
- 小程序好看卡片式轮播
- MVC依赖注入Unity应用学习
- 这就是Staday跨境电商吸引卖家和合作商的资本!
热门文章
- 前端学习(2565):watch监听
- 前端学习(2311):react中处理跨域问题
- “约见”面试官系列之常见面试题之第六十三篇之get和post区别(建议收藏)
- “约见”面试官系列之常见面试题第二十五篇之对vue-router的理解(建议收藏)
- mybatis学习(55):延迟加载
- spring学习(43):属性注入中注入引用对象
- 11集成计划的制定与实施
- java学习(21):移位运算符
- 如何用脚本可靠关闭一个linux服务或进程
- 友讯(d-link)dwa-525 150m无线台式计算机网卡,D-Link新款台式机无线网卡即将上市