springboot中使用mybatis显示执行sql

springboot 中使用mybatis显示执行sql的配置,在properties中添加如下

logging.你的包名=debug

    2018-11-27 16:35:43.044 [DubboServerHandler-10.5.110.6:17003-thread-5] DEBUG c.i.e.n.h.c.w.p.dao.mysql.TWorkMapper.getWaitListCount - ==>  Preparing: 
     select count(*) from ai_t_work a where isdeleted = 0 and teacherid = ? and sendtime > ?

转载于:https://www.cnblogs.com/xieshuang/p/10027578.html

你可能感兴趣的:(springboot中使用mybatis显示执行sql)