mybatis 在控制台输出sql语句 在mybatis主配置文件中mybatis.xml的<configuration>标签中加入 <settings> <setting name="logImpl" value="STDOUT_LOGGING"/> </settings>