mybatis log4j配置

网上找了半天各种不靠谱,折腾了半天了,怎么都打印不了sql语句,现在记录下。


mybatis-3.0 时候如果使用log4j 配置打印日志,要注意添加几个jar包

slf4j-api-1.6.1.jar

slf4j-log4j12-1.7.7.jar


在使用mybatis-3.1.1.jar 

把上面的jar包在lib里删除


其他log4j如何配置就不说了

猜你喜欢

转载自blog.csdn.net/onnwll/article/details/41802257