测试druid debug日志输出

This commit is contained in:
gaoqr
2025-07-28 11:40:38 +08:00
parent fb540a7f9d
commit 2f5f6f518d
6 changed files with 19 additions and 3 deletions
@@ -53,6 +53,8 @@ spring:
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
filters: slf4j
primary: master
datasource:
master:
@@ -181,4 +183,8 @@ chenfeng:
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
encrypt:
enable: false
publicKey: cfimes
publicKey: cfimes
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
@@ -85,6 +85,7 @@
<appender-ref ref="FILE"/>
</appender>
<logger name="druid.sql" level="DEBUG"/>
<!-- 本地环境 -->
<springProfile name="local">
<root level="INFO">