0
点赞
收藏
分享

微信扫一扫

JAVA控制台打印 Time, Execute SQL语句

前台操作后,后台执行真正的SQL操作,控制台有日志输出

JAVA控制台打印 Time, Execute SQL语句_Time

是因为Mybatis-plus的插件原因(Mybatis-plus性能分析插件—PerformanceInter):解决办法

有下面这个配置,去掉即可。一般在MybatisPlusConfig中

@Bean
public PerformanceInterceptor performanceInterceptor() {
return new PerformanceInterceptor();
}

Mybatis-plus性能分析插件—PerformanceInter:

#性能分析插件

性能分析拦截器,用于显示每条 SQL 语句及其执行时间

举报

相关推荐

0 条评论