eureka client本身给我提供的一个东西

需要参数serviceId

就是provider的yml里面配置的这个hello-service-provider

ServiceInstance接收。里面有很多的方法,可以获取到端口号 urli、host等


重启comsumer的服务。
访问:

http://localhost:7201/sayhello?message=hello

 




 



 

相关文章:

  • 2022-02-04
  • 2022-02-05
  • 2021-12-28
  • 2022-01-21
  • 2021-09-27
  • 2021-11-10
  • 2022-12-23
猜你喜欢
  • 2022-03-01
  • 2022-02-09
  • 2022-02-20
  • 2021-11-20
  • 2021-07-11
  • 2021-11-15
  • 2022-02-26
相关资源
相似解决方案