mybaits-configuration.xml文件(文件名自定义,即MyBatis的配置文件)设置打印sql语句日志方式:
方法:<settings></settings>标签下添加一个<setting />子标签,属性name="logImpl" value="STDOUT_LOGGING"
示例:
<settings>
<setting name="jdbcTypeForNull" value="NULL" />
<setting name="logImpl" value="STDOUT_LOGGING" />
</settings>