Spring Boot会“调试"什么?配置属性集? [英] What Does The Spring Boot "debug" Config Property Set?
问题描述
如果我在 application.yaml
配置文件中使用以下属性配置Spring Boot Web应用程序:
If I configure my Spring Boot web app with the following property in my application.yaml
config file:
debug: true
我注意到我的日志记录配置被忽略,所有设置都设置为DEBUG级别.有道理.
I've noticed that my logging config gets ignored and everything is set to a DEBUG level. Makes sense.
debug = true
是否会影响其他内容?还是仅仅是记录的东西?
Does debug=true
affect anything else though? Or is this simply a logging thing?
推荐答案
摘自https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html
您还可以在application.properties中指定debug = true.
you can also specify debug=true in your application.properties.
启用调试模式后,将选择一些核心记录器(嵌入式容器,Hibernate和Spring Boot)配置为输出更多信息.
When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate and Spring Boot) are configured to output more information.
这篇关于Spring Boot会“调试"什么?配置属性集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!