解决springbootyml配置logging.level报错问题
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
解决方法 :加个root
logging: config: classpath:spring-logback.xml pattern: console: "%d - %msg%n" level: root: info
运行成功
以上这篇解决springboot yml配置 logging.level 报错问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望 大家多多支持。
这篇文章主要介绍了python中logging日志的四个等级和使用文中通过示例代码介绍的非常详细对大家的学习或者工作具有一定的参考学习价值需要的朋友们下面随着小编来一起学习学习吧
解决 springbootyml配置 logging.level报错问题
g: classpath:spring-logback.xml pattern: console: "%d - %msg%n" level: info
直接写 level: info 会报错:
org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'logging.level' to java.util.Map<ng.String, ng.String> ... Caused by: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [ng.String] to type [java.util.Map<ng.String, ng.String>] ...
logging: config: classpath:spring-logback.xml pattern: console: "%d - %msg%n" level: root: info
运行成功
以上这篇解决springboot yml配置 logging.level 报错问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望 大家多多支持。
这篇文章主要介绍了python中logging日志的四个等级和使用文中通过示例代码介绍的非常详细对大家的学习或者工作具有一定的参考学习价值需要的朋友们下面随着小编来一起学习学习吧
解决 springbootyml配置 logging.level报错问题
g: classpath:spring-logback.xml pattern: console: "%d - %msg%n" level: info
直接写 level: info 会报错:
org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'logging.level' to java.util.Map<ng.String, ng.String> ... Caused by: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [ng.String] to type [java.util.Map<ng.String, ng.String>] ...