add 增加 自定义sql日志输出 性能比p6spy更好更详细 可以精确定位mapper具体位置
This commit is contained in:
@@ -61,14 +61,20 @@ snail-ai:
|
||||
read-timeout-ms: 60000
|
||||
chat-timeout-ms: 300000
|
||||
|
||||
--- # MyBatis Plus 配置
|
||||
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
|
||||
# 设置默认的数据源或者数据源组,默认值即为 master
|
||||
primary: master
|
||||
# 严格模式 匹配不到数据源则报错
|
||||
|
||||
Reference in New Issue
Block a user