测试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">
@@ -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:
@@ -166,8 +168,7 @@ chenfeng:
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
--- #################### 生产接口url配置 ####################
api:
@@ -85,6 +85,7 @@
<appender-ref ref="FILE"/>
</appender>
<logger name="druid.sql" level="DEBUG"/>
<!-- 本地环境 -->
<springProfile name="local">
<root level="INFO">
@@ -51,6 +51,8 @@ spring:
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
filters: slf4j
primary: master
datasource:
master:
@@ -315,3 +317,7 @@ aj:
req-get-minute-limit: 30 # get 接口一分钟内请求数限制
req-check-minute-limit: 60 # check 接口一分钟内请求数限制
req-verify-minute-limit: 60 # verify 接口一分钟内请求数限制
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">