一、Spring Boot配置文件 在Spring Boot 的配置文件application.yml中加入 mybatis: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 二、修改日志级别 logging: level: com.xxx.xxx.dao: debug #Mapper层包名,注意不是XML文件的包名