fix: 生产环境不再打印全部 SQL

This commit is contained in:
2026-10-09 10:52:20 +08:00
parent e506c4d751
commit af13bd57b7
3 changed files with 13 additions and 3 deletions
+5
View File
@@ -17,3 +17,8 @@ sa-token:
cookie: cookie:
secure: false secure: false
sameSite: Lax sameSite: Lax
# 开发环境打印 SQL(Slf4jImpl 下由 mapper 包日志级别控制)
logging:
level:
com.guo.learningprogresstracker.mapper: debug
+5
View File
@@ -17,3 +17,8 @@ sa-token:
cookie: cookie:
secure: false secure: false
sameSite: Lax sameSite: Lax
# 本地开发打印 SQL(Slf4jImpl 下由 mapper 包日志级别控制)
logging:
level:
com.guo.learningprogresstracker.mapper: debug
+2 -2
View File
@@ -23,8 +23,8 @@ spring:
date-format: yyyy-MM-dd'T'HH:mm:ss'Z' date-format: yyyy-MM-dd'T'HH:mm:ss'Z'
mybatis-plus: mybatis-plus:
configuration: configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 使用 Slf4j 输出 SQL:由各环境的 logging.level 决定是否打印,生产默认不打印
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
############## Sa-Token 配置 (文档: https://sa-token.cc) ############## ############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
sa-token: sa-token: