天天看点

Guns mybatisplus只输出sql不输出结果集

文章目录

  • ​​1. yml配置​​
  • ​​2. 效果图​​
今天给大家讲一下在数据量特别大的场景下,Guns开源项目怎样实现只输出sql不输出结果集列表。

1. yml配置

mybatis-plus:
  typeAliasesPackage: cn.stylefeng.guns.modular.system.model
  mapper-locations:
    - classpath*:cn/stylefeng/guns/**/mapping/*.xml
  configuration:
    log-impl: 

logging:
  level:
    cn.stylefeng: debug

注:说一下为什么要配置这2行配置,如果没有用到guns可以不用配置,必须配置是因为Guns基层内置初始化的log引用,因此,需要重写,以下2行配置必须有
  configuration:
    log-impl:      

2. 效果图

改动前:

Guns mybatisplus只输出sql不输出结果集