Mybatis加入日志

*在mybatis-config.xml核心配置文件中加入如下设置,在configration中标签中加入

1     <!--打印日志,方便看输出SQL -->
2     <settings>
3         <setting name="logImpl" value="STDOUT_LOGGING" />
4     </settings>

猜你喜欢

转载自www.cnblogs.com/GetcharZp/p/9269318.html