上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 1:pom 1.1:父pom <!--Spring cloud alibaba dependencies --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-dependenci 阅读全文
posted @ 2020-04-17 14:00 Draymond 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 1:下载 https://github.com/alibaba/nacos/releases 网盘下载地址 1.2.1版本 链接:https://pan.baidu.com/s/1DM-ZlLvpmtK0OOcAl-Rj4g 提取码:rt5v 2:安装运行 运行bin下面的命令 3:查看运行结果 h 阅读全文
posted @ 2020-04-17 13:51 Draymond 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1:注入 DiscoveryClient // import org.springframework.cloud.client.discovery.DiscoveryClient; @Autowired private DiscoveryClient discoveryClient; 2:对外提供方 阅读全文
posted @ 2020-04-16 16:37 Draymond 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: yml eureka: client: fetch-registry: true register-with-eureka: true service-url: defaultZone: http://eureka7002.com:7002/eureka/,http://eureka7001.com 阅读全文
posted @ 2020-04-16 11:19 Draymond 阅读(2146) 评论(0) 推荐(0) 编辑
摘要: yml spring: application: name: cloud-payment-service # 也是注册到eureka服务的名称( 服务别名(使用服务别名去注册中心获取实际的RPC远程调用地址) ) 名字相同,则为注册的相同的服务,不同的实例(该名称不可随意改动,否则,client调用 阅读全文
posted @ 2020-04-16 11:00 Draymond 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: yml 消费端 eureka: client: fetch-registry: true register-with-eureka: true service-url: defaultZone: http://eureka7002.com:7002/eureka/,http://eureka7001 阅读全文
posted @ 2020-04-16 10:58 Draymond 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 分配端口 7001 7002 7003 yml eureka: instance: hostname: eureka7001.com #eureka服务端的实例名称 client: register-with-eureka: false #false表示不向注册中心注册自己 fetch-regist 阅读全文
posted @ 2020-04-16 10:56 Draymond 阅读(170) 评论(1) 推荐(0) 编辑
摘要: 1:pom <! eureka-client --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactI 阅读全文
posted @ 2020-04-15 22:02 Draymond 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1:pom依赖 <! eureka-client --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifac 阅读全文
posted @ 2020-04-15 20:51 Draymond 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1:pom依赖 <! eureka-server --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifac 阅读全文
posted @ 2020-04-15 20:13 Draymond 阅读(246) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页