• 13984468001@163.com

    资源无法下载,请更新地址,谢谢。

    13984468001@163.com发表于 2018/8/19 23:08:56
  • Keithdu

    作者你好。问题在本书50页,启动ribbon-consumer之后。
    启动peer1和peer2两个注册中心,以及port=8081、port=8082两个hello-service,再启动了ribbon-consumer之后,在浏览器访问http://localhost:1111/ 时,可以明显看到注册中心peer1(1111)、peer2(1112)以及
    HELLO-SERVICE(8081、8082)、以及刚启动的ribbon-consumer(9000)。按照书上之前的操作也都正常,但是访问http://http://localhost:9000/ribbon-consumer 时,浏览器却报错
    There was an unexpected error (type=Internal Server Error, status=500).
    I/O error on GET request for “http://HELLO-SERVICE/hello“: HELLO-SERVICE; nested exception is j**a.net.UnknownHostException: HELLO-SERVICE

    ribbon-consumer项目的后台也报错j**a.net.UnknownHostException: HELLO-SERVICE。
    是怎么回事呢?

    Keithdu发表于 2018/5/29 16:56:08
    • diffuser

      我这里总说9000端口被占用,改成9001,就没有问题了

      diffuser发表于 2019/6/27 9:40:17
  • wyy

    您好,我是新手,关于书中169页的USER-SERVICE这个服务应用 书中有提到,同时下载资源后Ribbon项目里面只提及了应用名,但却没找到这个项目,请求帮助

    wyy发表于 2018/4/29 15:41:38
  • Alan

    你好,有个疑问,第69页,那个服务实例端口不一样为什么会发现注册到Eureka Server的实例名都是相同呢???
    实例名 = ip + ${spring.application.name} + ${server.port}

    Alan发表于 2018/4/25 17:31:31
  • will999

    作者你好,本书45页,我按照书中的步骤,启动先启动Eureka服务注册中心,启动成功,在启动客户端的时候报错了,com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server 主要就是这个错。配置文件我都是按照书上完全一样的。网上搜了很多,都是解决,注册中心启动报错的案例。我这个是客户端启动报错。请问是怎么回事啊?谢谢

    will999发表于 2018/4/15 10:54:50
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7