application.yml中加上

SpringBoot中Mybatis打印sql日志
# springBoot+Mybatis 控制台打印SQL语句  (方式一)
logging:
  level:
    com.zoctan.api.mapper : debug

# 配置slq打印日志 (方式二)
mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
SpringBoot中Mybatis打印sql日志

上面二选一就可以了。

效果:

SpringBoot中Mybatis打印sql日志

 

application.yml中加上

SpringBoot中Mybatis打印sql日志
# springBoot+Mybatis 控制台打印SQL语句  (方式一)
logging:
  level:
    com.zoctan.api.mapper : debug

# 配置slq打印日志 (方式二)
mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
SpringBoot中Mybatis打印sql日志

上面二选一就可以了。

效果:

SpringBoot中Mybatis打印sql日志

 

相关文章:

  • 2021-06-18
  • 2021-09-18
  • 2021-08-24
  • 2021-09-01
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-05-11
  • 2021-11-04
相关资源
相似解决方案