解决springboot yml配置 logging.level 报错问题
如下所示:
logging: config: 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<java.lang.String, java.lang.String>
...
Caused by: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, java.lang.String>]
...
解决方法 :加个root
logging: config: classpath:spring-logback.xml pattern: console: "%d - %msg%n" level: root: info
运行成功
上一篇:详解如何从TensorFlow的mnist数据集导出手写体数字图片
栏 目:Python代码
下一篇:如何清空python的变量
本文标题:解决springboot yml配置 logging.level 报错问题
本文地址:http://www.codeinn.net/misctech/174758.html






