REST接口服务
https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
注意:springcloud工程不需要v2,即接口是/eureka/apps
,不是/eureka/v2/apps
- 获取服务列表
url: http://localhost:8761/eureka/apps
image.png
分析
注册Bean
org.springframework.cloud.netflix.eureka.server.EurekaServerConfiguration#jerseyApplication
扫描:Path Provider注解。
实现类
com.netflix.eureka.resources.ApplicationsResource#getContainers
网友评论