spring boot: mybatis 打印 sql
在 application 加入以下配置
application.yml
#开启sql打印
logging:
level:
com.jsh.erp.datasource.mappers: DEBUG
application.properties
#开启sql打印
logging.level.com.jsh.erp.datasource.mappers=DEBUG
注: com.jsh.erp.datasource.mappers 是 mybatis 接口及映射文件包