Mybatis开启Sql日志Console打印 mybatis_config xml配置 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <settings> <setting name="logImpl" value="STDOUT_LOGGING"/> </settings> </configuration> application.yml # MyBatis mybatis: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl