从 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.