spring-cloud / spring-cloud/spring-cloud-gateway

Discovery route locator not picking up new services

Open
#1,514 15 comments 3 reactions 1 assignee View on GitHub

@spencergibb is already working on this.

Since Apr 20, 2020.

in progress
Dominant language
Java
Stars
4.9k
Forks
3.5k
Avg merge
20h 57m
Merged PRs (30d)
8

Description

Hello, I used springboot2.2.2.RELEASE,springcloud Hoxton.SR1.

  • When I started order is

eurekaServer(design-eureka)-->configServer(design-config)-->gateway(design-gateway)-->authServer(design-auth).
The request url is
http://localhost:9000/DESIGN-AUTH/auth/login

  @RequestMapping(value = "/login",method = RequestMethod.POST)
    public String login() {
        String result="{\"code\":200,\"data\":\"success\"}";
        return result;
    }

The result is 404 error.can‘t reach authServer

  • When I started order is

eurekaServer(design-eureka)-->configServer(design-config)-->authServer(design-auth)-->gateway(design-gateway)

The result is ok,The authServer is ok.

================================================
When I used springboot2.1.11.RELEASE,springcloud Greenwich.SR4

2nd start order way is ok

The demon code url is demon url

                                                           > Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.