在application.properties的配置文件中写上下面一段即可配置成功 #show SQL in logMessagelogging.level.cn.zkhh.mapper=debug 效果如下: