Skip to content

Instantly share code, notes, and snippets.

@zbo2018
Created April 9, 2019 10:40
Show Gist options
  • Save zbo2018/34e1f56f4dd8b54eb2bef323a652182e to your computer and use it in GitHub Desktop.
Save zbo2018/34e1f56f4dd8b54eb2bef323a652182e to your computer and use it in GitHub Desktop.
如何设置spring boot集成 mybatis 然后sql语句打印到控制台,方便调试:
设置方法:
在application.properties文件中添加:
logging.level.com.zhangshitong.springbootModel.demo.mapper=DEBUG
'com.zhangshitong.springbootModel.demo.mapper'部分替换成自己项目XXXMapper.java(Dao)层所在的位置(包名)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment