What Does The Spring Boot “debug” Config Property Set?

£可爱£侵袭症+ 提交于 2020-06-03 17:27:41

问题


If I configure my Spring Boot web app with the following property in my application.yaml config file:

debug: true

I've noticed that my logging config gets ignored and everything is set to a DEBUG level. Makes sense.

Does debug=true affect anything else though? Or is this simply a logging thing?


回答1:


From the documentation at https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html

you can also specify debug=true in your application.properties.

When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate and Spring Boot) are configured to output more information.



来源:https://stackoverflow.com/questions/44446312/what-does-the-spring-boot-debug-config-property-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!