add 增加 自定义sql日志输出 性能比p6spy更好更详细 可以精确定位mapper具体位置

This commit is contained in:
疯狂的狮子Li
2026-06-17 10:51:24 +08:00
parent efac99b5ea
commit ed1cf858b0
11 changed files with 412 additions and 41 deletions
+7 -2
View File
@@ -30,13 +30,18 @@ datasource:
# username: root
# password: password
mybatis-plus:
sql-log:
# 完整 SQL 输出开关
enabled: true
# 输出方式,可选 console、log
output: console
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
dynamic:
# 性能分析插件(有性能损耗 不建议生产环境使用)
p6spy: true
# 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭
seata: ${seata.enabled}
# 严格模式 匹配不到数据源则报错
+2
View File
@@ -63,6 +63,8 @@ spring:
uri: lb://ruoyi-ai
predicates:
- Path=/snail-ai/**
filters:
- StripPrefix=1
# workflow服务
- id: ruoyi-workflow
uri: lb://ruoyi-workflow