1. log4j的相对路径
情况一:eclipse的的安装路径,比如D:eclipse
2. 限制哪些包下不输出日志
log4j.logger.org.springframework=ERROR
log4j.logger.com.opensymphony.xwork2=ERROR
log4j.logger.org.apache.struts2=ERROR
log4j.logger.org.hibernate=ERROR
分别是限制spring的org.springframework.*包,struts2的com.opensymphony.xwork2.*和org.apache.struts2.*
hibernate的org.hibernate.*,干净的很。