Mybatis SQL语句控制台打印
一、普通Spring项目:修改Mybatis.xml
<configuration>
<settings>
<setting name="logImpl" value="STDOUT_LOGGING" />
</settings>
</configuration>
二、 SpringBoot:修改application.yml
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl