spring中加入log4j

spring中加入log4j

    <context-param>
        <param-name>log4jConfigLocation</param-name>
        <param-value>classpath:log4j.properties</param-value>
    </context-param>
    <listener>
        <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
    </listener>

 

posted @ 2014-04-23 13:39  Annie118  阅读(166)  评论(0编辑  收藏  举报