springboot 打印 mybatisplus 的sql

感觉mybatis-lus打印的sql,

包含row信息,实在太多了。

干脆就只使用logback的输出来弄。

application.yml

下面 com.xx.xx.mapper  是你得mapper所在得包路径

logging:
  pattern:
    console: "%d - %msg%n"
  file:
    path: logs
  level:
    com.xxx.xxx.mapper: debug
原文地址:https://www.cnblogs.com/hanjun0612/p/15660472.html