Spring Cloud--搭建Eureka注册中心服务

使用RestTemplate远程调用服务的弊端:

Eureka注册中心:

Eureka原理:

搭建Eureka服务

引pom

启动类:

启动类上要加上@EnableEurekaServer注解:

配置文件中设置端口号:

 配置注册地址:

配置服务名称:

配置ip地址:

控制面板信息:

猜你喜欢

转载自www.cnblogs.com/niwotaxuexiba/p/10853427.html