Eureka 消费方

创建服务消费者
1、pom文件添加eureka的起步依赖
2、配置文件添加eureka.client相关配置
3、启动类注解@EnableDiscoveryClient

启动类:

 启动后。

 

原文地址:https://www.cnblogs.com/1-Admin/p/8729122.html