springboot mybatis打印sql语句

个人使用第二句有效,但是都加上吧
1、mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
2、logging.level.xxx.xxx.dao=debug //xxx.xxx.dao就是你的mapper接口的包路径

原文地址:https://www.cnblogs.com/tianphone/p/11022044.html