adjust logging, avoid add too much raw sql logging

This commit is contained in:
irving
2025-10-27 21:49:20 -04:00
parent 15e15bc01a
commit 8691a56f8a
2 changed files with 5 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ mybatis-plus:
# xml文件路径classpath* 代表所有模块的resources目录 classpath 不加星号代表当前模块下的resources目录
mapper-locations: classpath*:mapper/**/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
wx:
mp:
@@ -36,4 +36,4 @@ wx:
database: ${spring.redis.database}
port: ${spring.redis.port}
password: ${spring.redis.password}
type: RedisTemplate
type: RedisTemplate

View File

@@ -78,6 +78,8 @@
<appender-ref ref="ERROR_FILE"/>
</root>
<logger name="com.starry" level="info"/>
<logger name="org.mybatis" level="WARN"/>
<logger name="com.baomidou.mybatisplus" level="WARN"/>
<logger name="com.starry" level="info"/>
</configuration>