【问题标题】:What Does The Spring Boot "debug" Config Property Set?Spring Boot“调试”配置属性设置了什么?
【发布时间】:2017-06-08 22:06:38
【问题描述】:

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

debug: true

我注意到我的日志记录配置被忽略并且所有内容都设置为调试级别。有道理。

debug=true 会影响其他任何东西吗?或者这只是一个日志记录?

【问题讨论】:

    标签: java spring logging spring-boot


    【解决方案1】:

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

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

    启用调试模式后,选择的核心记录器(嵌入式 容器、Hibernate 和 Spring Boot)配置为输出更多 信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-21
      • 2019-05-19
      • 2020-06-14
      • 2016-02-27
      • 1970-01-01
      • 2018-11-14
      • 2020-05-02
      • 2021-05-10
      相关资源
      最近更新 更多