我们需要在我们的 Spring boot 应用程序中配置 SlowQueryReport
Tomcat 拦截器,特别是 threshold
属性文件中的值。在网上找不到任何东西。有帮助吗?
最佳答案
我们在配置文件中使用了旧语法(见下文,注意给定的 threshold
)并且它起作用了:
spring.datasource:
tomcat.jdbc-interceptors: org.apache.tomcat.jdbc.pool.interceptor.SlowQueryReport(threshold=10);any.other.tomcat.Interceptor
关于spring - 如何在Spring Boot属性中设置Tomcat的SlowQueryReport拦截器的阈值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54591033/