web.xml 配置 log4j.properties

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

猜你喜欢

转载自blog.csdn.net/wang_3600/article/details/81109958