Spring-boot 2.2.6. Релиз Zuul не работает - PullRequest
0 голосов
/ 26 апреля 2020

Похоже, что в версии 2.2.6 Spring Boot spring-cloud.version Hoxton.SR3 zuul не распознается. Я добавил его в зависимости, но он не скомпилирован

Это мой pom. xml:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.6.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
    <java.version>1.8</java.version>
    <spring-cloud.version>Hoxton.SR3</spring-cloud.version>
</properties>

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
</dependency>

И мой код:

package com.example.photoapp.api.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient
@EnableZuulProxy
public class PhotoAppApiZuulApiGateway2Application {

    public static void main(String[] args) {
        SpringApplication.run(PhotoAppApiZuulApiGateway2Application.class, args);
    }

}

Любая идея, что такое проблема и как ее решить?

...