use of com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor in project shopzz by whoiszxl.
the class MyBatisConfig method performanceInterceptor.
@Bean
@Profile({ "dev", "test" })
public PerformanceInterceptor performanceInterceptor() {
PerformanceInterceptor performanceInterceptor = new PerformanceInterceptor();
// ms,超过此处设置的ms则sql不执行
performanceInterceptor.setMaxTime(1000);
performanceInterceptor.setFormat(true);
return performanceInterceptor;
}
use of com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor in project springboot-learning by lyb-geek.
the class MybatisPlusConfig method performanceInterceptor.
/**
* 性能分析插件
*
* @return
*/
@Bean
public PerformanceInterceptor performanceInterceptor() {
PerformanceInterceptor performanceInterceptor = new PerformanceInterceptor();
performanceInterceptor.setFormat(true);
return performanceInterceptor;
}
Aggregations