springboot中使用mybatis显示执行sql

2019-08-09 17:23:21 浏览数 (1)

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

代码语言:javascript复制
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 > ?

0 人点赞