- 方法里用这个
System.setProperty("org.apache.commons.logging.LogFactory", "org.apache.commons.logging.impl.LogFactoryImpl");
LogFactory.getFactory().setAttribute("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
LogFactory.getFactory().setAttribute("org.apache.commons.logging.simplelog.defaultlog", "error");