SpringBoot项目配置mybatis打印SQL
application.properties
logging.level.com.hundsun.dao=debug
application.yml
logging:
level:
com.hundsun.dao: debug
注意:com.hundsun.dao为mapper.xml对应的mapper接口所在包路径
application.yml和application.properties任配一个即可