首页 > 解决方案 > 使用spring cloud gateway HOXTON.SR5停止和启动服务后看不到服务

问题描述

我使用的是spring cloud gateway Hoxton.SR5 版本。问题是当我停止服务并再次刷新它并发布执行器/网关/刷新时,我无法再次找到该服务。如果我从正在使用的 2.2.3(Hoxton.SR5)降级 spring-cloud-gateway-core 2.2.0,它可以正常工作。

您知道发生了什么变化或对该问题产生了什么影响吗?

顺便说一句,它适用于名为 Hoxton.RELEASE 的旧版本。它不适用于 Hoxton.SR5 版本。

谢谢

Pom.xml

      <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Hoxton.SR5</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-gateway</artifactId>
        <version>2.2.0.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-gateway-core</artifactId>
        <version>2.2.0.RELEASE</version>
    </dependency>

标签: springspring-cloudspring-cloud-gateway

解决方案


推荐阅读