Keycloak 服务器作为 Eureka 客户端

Keycloak server as Eureka client

我想让我的 Keycloak 服务器充当 Eureka 客户端。服务器启动时似乎没有找到以下方法:

javax.ws.rs.core.Application.getProperties()Ljava/util/Map;

方法的 class、javax.ws.rs.core.Application 可从以下位置获得:

 jar:file:/home/vagrant/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar!/javax/ws/rs/core/Application.class
 jar:file:/home/vagrant/.m2/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.1_spec/2.0.1.Final/jboss-jaxrs-api_2.1_spec-2.0.1.Final.jar!/javax/ws/rs/core/Application.class

它是从以下位置加载的:

file:/home/vagrant/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar

您对这种行为有什么想法吗?

尝试排除 jsr311-api 并包含 spring-boot-starter-jersey。 15.0.2

适合我
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
        <version>3.0.3</version>
        <exclusions>
            <exclusion>
                <groupId>javax.ws.rs</groupId>
                <artifactId>jsr311-api</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-jersey</artifactId>
        <version>2.5.4</version>
    </dependency>