Spring Boot“调试”配置属性集是什么?

Kon*_*ong 3 java logging spring spring-boot

如果我在配置文件中使用以下属性配置 Spring Boot Web 应用程序application.yaml

debug: true
Run Code Online (Sandbox Code Playgroud)

我注意到我的日志配置被忽略,所有内容都设置为调试级别。说得通。

debug=true影响其他什么吗?或者这只是一个日志记录的事情?

aba*_*hel 5

来自https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html的文档

您还可以在 application.properties 中指定 debug=true。

启用调试模式后,将配置一系列核心记录器(嵌入式容器、Hibernate 和 Spring Boot)来输出更多信息。