作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
以前我用spring 4.3.8版本,
我曾经在 web.xml 中使用 Log4j 配置,如下面的代码,
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:/log4j-${spring.profiles.active}.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
最佳答案
从 Spring 4.2.1 开始, Log4jConfigListener
已被删除,以支持 Apache Log4j 2。
相关信息见Spring 4.2.1 deprecation list:
org.springframework.web.util.Log4jConfigListener
as of Spring 4.2.1, in favor of Apache Log4j 2 (following Apache's EOL declaration for log4j 1.x)
关于Spring 5 如何使用 Log4jConfigListener,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53868470/
我是一名优秀的程序员,十分优秀!