【问题标题】:Maven dependecy for LoggingFilter in Jersey泽西岛日志过滤器的 Maven 依赖项
【发布时间】:2018-12-02 17:18:24
【问题描述】:

对于 org.glassfish.jersey.filter.LoggingFilter 类,必须向 pom.xml 添加什么依赖项?我尝试从 org.glassfish.jersey.core 添加 artifactId jersey-common 和 jersey-client ,但不存在此类。

【问题讨论】:

  • 如果它对你有价值,你能接受答案吗

标签: jakarta-ee jersey


【解决方案1】:

从 Jersey 2.23 开始,您应该使用 LoggingFeature 而不是 LoggingFilter(已在 Jersey 2.26 中删除)。确保您在类路径中有 jersey-common 工件。

详情请参阅documentation

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-13
    • 1970-01-01
    • 2012-06-04
    • 1970-01-01
    • 1970-01-01
    • 2014-10-06
    • 1970-01-01
    • 2011-08-02
    相关资源
    最近更新 更多