These are chat archives for spring-cloud/spring-cloud

19th
Mar 2018
Tommy Ludwig
@shakuzen
Mar 19 2018 02:31
I reported before but the Spring Cloud project page still shows Finchley M7 rather than the latest M8: https://projects.spring.io/spring-cloud/
Dave Syer
@dsyer
Mar 19 2018 09:23
Should be fixed now
Tommy Ludwig
@shakuzen
Mar 19 2018 13:43
Looks good now except the POM snippet
The Spring Boot version should be 2.0.0.RELEASE if I'm not mistaken
Dave Syer
@dsyer
Mar 19 2018 13:56
Thanks. I fixed that too, but I think there's a CDN cache somewhere that prevents it from refreshing. It will time out eventually
玹霖
@SoftwareKing
Mar 19 2018 15:47
image.png
@spencergibb
Java configuration is not work
Spencer Gibb
@spencergibb
Mar 19 2018 15:49
@SoftwareKing that's from someones blog, not the documentation
玹霖
@SoftwareKing
Mar 19 2018 15:51
Do you have an example?I want to learn by two ways
@Bean
    public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
        return builder.routes()
                //basic proxy
                .route(r -> r.path("/baidu")
                        .uri("http://baidu.com:80/")
                ).build();
    }
spring:
  cloud:
    gateway:
      routes:
      - id: xujin_route
        uri: http://www.xujin.org:80/
        predicates:
        - Path=/xujin
between should be available with f.between()
玹霖
@SoftwareKing
Mar 19 2018 15:56
Thank you very much
Lovnx
@Lovnx
Mar 19 2018 16:35

I wanna find the answer about zuul and ribbon based on Finchley.M7, zuul version 1.3.1
I have some puzzles from the Documentation:

zuul:
  routes:
    users:
      path: /myusers/**
      serviceId: users

ribbon:
  eureka:
    enabled: false

users:
  ribbon:
    listOfServers: example.com,google.com

What does this mean?

  1. should I create a Ribbon project which serviceId is called 'users'?
  2. what is 'example.com,google.com'? What should it be classified?
Spencer Gibb
@spencergibb
Mar 19 2018 16:36
Finchley.M8 is the latest BTW
Lovnx
@Lovnx
Mar 19 2018 16:37
@spencergibb
Spencer Gibb
@spencergibb
Mar 19 2018 16:42
I don't understand what "should I create a Ribbon project which serviceId is called 'users'?" means
listOfServers: example.com,google.com are the hosts that ribbon will load balance between
Lovnx
@Lovnx
Mar 19 2018 16:45
Thanks, I guess I've found the answer. @spencergibb
Spencer Gibb
@spencergibb
Mar 19 2018 16:47
you guess?
Lovnx
@Lovnx
Mar 19 2018 16:49
I will check my guess. :smile: see u