将 Jetty 从 11.0.24 升级到 12.0.14 后缺少类

问题描述 投票:0回答:1

我正在从

11.0.24
更新码头:

<dependency>
    <groupId>jakarta.servlet</groupId>
    <artifactId>jakarta.servlet-api</artifactId>
    <version>5.0.0</version>
</dependency>
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-security</artifactId>
    <version>11.0.24</version>
</dependency>
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-server</artifactId>
    <version>11.0.24</version>
</dependency>
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-util</artifactId>
    <version>11.0.24</version>
</dependency>

12.0.14
:

<dependency>
    <groupId>jakarta.servlet</groupId>
    <artifactId>jakarta.servlet-api</artifactId>
    <version>5.0.0</version>
</dependency>
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-security</artifactId>
    <version>12.0.14</version>
</dependency>
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-server</artifactId>
    <version>12.0.14</version>
</dependency>
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-util</artifactId>
    <version>12.0.14</version>
</dependency>

我收到以下课程的“未找到符号”。有谁知道这些类是否已被移动到不同的包中,或者已被其他东西替换?我想我找到了几个替代品,但我不确定:

Jetty 11.0.24 类 Jetty 12.0.14 类
org.eclipse.jetty.security.DefaultUserIdentity org.eclipse.jetty.security.internal.DefaultUserIdentity?
org.eclipse.jetty.security.UserAuthentication
org.eclipse.jetty.server.Authentication
org.eclipse.jetty.security.authentication.DeferredAuthentication
org.eclipse.jetty.server.UserIdentity org.eclipse.jetty.security.UserIdentity?

image

java jetty jetty-12
1个回答
0
投票

奇怪的是,在迁移指南中没有任何内容可看。但是,我可以使用 Javadoc 找到可能丢失的映射:

DeferredAuthentication -> AuthenticationState.Deferred
UserAuthentication -> AuthenticationState.Succeeded
身份验证 -> 身份验证状态

© www.soinside.com 2019 - 2024. All rights reserved.