springboot打印mybatis sql日志输出

在日常开发过程中,mybatis中xml的代码并不能debug,控制台输出sql是很好的排查手段。

springboot默认加载的日志配置是logback-spring.xml

编写一下代码即可实现

网上有很多说致谢org.apache.ibatis即可,本人实验后不行,必须加到dao下


猜你喜欢

转载自blog.csdn.net/lihongjing/article/details/80449724
今日推荐