欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

解決springboot yml配置 logging.level 報錯問題

 更新時間:2020年02月21日 08:51:19   作者:iyiio  
今天小編就為大家分享一篇解決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

運行成功

以上這篇解決springboot yml配置 logging.level 報錯問題就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論