mybatis打印sql语句

参考:https://blog.csdn.net/gao36951/article/details/53641432

 在mybatis的配置文件mybatis.xml里配置:

<settings>

        <!-- 打印查询语句 -->

        <setting name="logImpl" value="STDOUT_LOGGING" />

    </settings>

猜你喜欢

转载自guwq2014.iteye.com/blog/2419520