springboot集成mybatis打印sql语句问题
2017-07-07 本文已影响0人
山水风情
当遇到springboot 集成了mybatis 却打印不出sql语句,这时候就很烦人
问题总是可以解决的,需要在mybatis-config.xml文件中加入
<!-- 打印查询语句 -->
<setting name="logImpl" value="STDOUT_LOGGING" />

当遇到springboot 集成了mybatis 却打印不出sql语句,这时候就很烦人
问题总是可以解决的,需要在mybatis-config.xml文件中加入
<!-- 打印查询语句 -->
<setting name="logImpl" value="STDOUT_LOGGING" />