在springboot中打印sql语句, 在配置文件中添加:

1
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl