文章目錄
- 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. 效果圖
改動前: