种一个树的最好时间是十年前,其|

老羊肖恩

园龄:3年7个月粉丝:0关注:3

SpringBoot yml配置文件中,logging.level报错

报错


***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String, org.springframework.boot.logging.LogLevel>:

    Property: logging.level
    Value: debug
    Origin: class path resource [application.yml] - 25:10
    Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, org.springframework.boot.logging.LogLevel>]

Action:

Update your application's configuration

错误原因

配置文件写错了
在这里插入图片描述

解决

按照官网的案例

logging:
  level:
    root: "warn"
    org.springframework.web: "debug"
    org.hibernate: "error"

本文作者:老羊肖恩

本文链接:https://www.cnblogs.com/en-xiao/p/16867076.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。许可协议进行许可。

posted @   老羊肖恩  阅读(55)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起