springboot项目,在yml文件中配置了日志级别后,项目启动报如下错误,为什么去掉日志级别则可以正常启动?

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

Description:

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

    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


Process finished with exit code 1
阅读 2.6k
1 个回答

image.png
map的key就是包名,你要是全局的话,加root,应该会有代码提示的

推荐问题