---
title: "iBatis用log4j不打印SQL的原因"
author: "lxsgoodluck"
date: "2012-05-03T15:35:46Z"
tags: []
categories: ["开源软件"]
slug: "ibatis-log4j-sql"
draft: false
lastmod: "2012-05-04T15:13:55Z"
id: 1508669
url: "https://webwork.iteye.com/blog/1508669"
---

起初以为配置的问题，怎么样的配置都试了，可依然没有打印出SQL，后来把commons-logging-api.jar换成commons-logging.jar，出来了，狂汗，当初不知道怎么导入了commons-logging-api.jar进工程里，这仅是个简化版

 

 

 

[www.linkidea.cn](http://www.linkidea.cn)