【问题标题】:Alternate of package org.springframework.web.util.Log4jWebConfigurer in Spring 5.xSpring 5.x 中包 org.springframework.web.util.Log4jWebConfigurer 的替代品
【发布时间】:2020-05-01 22:14:17
【问题描述】:

我在 Spring 4.3.25 中使用包 org.springframework.web.util.Log4jWebConfigurer 进行日志记录。现在我将我的 spring 版本升级到 5.1.5,但是 spring-web 中没有 Log4jWebConfigurer 类。有人知道我可以采取什么替代步骤来解决这个问题吗?

我收到此错误。

 BootstrapListener.java:[6,36] cannot find symbol
[ERROR]   symbol:   class Log4jWebConfigurer
[ERROR]   location: package org.springframework.web.util

【问题讨论】:

    标签: java spring spring-mvc logging log4j


    【解决方案1】:

    尝试以下配置,因为 Log4jWebConfigurer 和 Log4jConfigListener 已被弃用,

    http://www.javasavvy.com/spring-log4j-integration/

    【讨论】:

    猜你喜欢
    • 2022-01-22
    • 2016-02-17
    • 2018-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-31
    • 2016-02-15
    相关资源
    最近更新 更多