Spring 注入 log4j
如果打算将Log4j注入Spring的applicationContext文件中,只需要加入一个bean即可: [code="java"] conf/log4j.xml [/code] 如果要注入到web.xml: [code="java"] log4jConfigLocation /WEB-INF/resources/log4j.properties log4jRefreshInterval 1000 org.springframework.web.util.Log4jConfigListener [/code]
你上传一个log4j的文档就更好了?
可以解释下这样的作用吗?
学习,。不错