摘要:
1、在启动类上添加@EnableDiscoveryClient注解 2、注入并调用方法 @Autowiredprivate DiscoveryClient discoveryClient; List<ServiceInstance> instances = discoveryClient.getIn 阅读全文
摘要:
1、导入坐标<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId></dependency>2、启动类注 阅读全文
摘要:
1、导入坐标<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> <version>Greenwich 阅读全文