会员
T恤
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
companion
上一页
1
2
3
4
5
6
7
8
9
···
23
下一页
9-springcloud-eureka-5-从Eureka服务注册中心发现与消费服务
摘要: 已经搭建一个服务注册中心,同时也向这个服务注册中心注册了服务,接下来我们就可以发现和消费服务了,这其中服务的发现由 eureka 客户端实现,而服务的消费由 Ribbon 实现,也就是说服务的调用需要 eureka 客户端和 Ribbon,两者配合起来才能实现; Eureka 客户端是一个 Java
阅读全文
posted @ 2023-04-06 14:01 companion
阅读(12)
评论(0)
推荐(0)
编辑
org.springframework.cloud.client.loadbalancer.LoadBalancerClientsProperties
摘要: 参考文章: https://blog.csdn.net/qq_43788878/article/details/115894882 springboot和springcloud或者相关插件的版本问题
阅读全文
posted @ 2023-04-06 13:56 companion
阅读(68)
评论(0)
推荐(0)
编辑
8-springcloud-eureka-4-向Eureka服务注册中心注册服务
摘要: eureka-server就是我们自己开发的module,是eureka的服务端,扮演注册中心的角色; eureka-client就是我们自己开的微服务module,向eureka-server注册中心注册服务; 前面搭建了服务提供者项目,接下来我们就可以将该服务提供者注册到Eureke 注册中心,
阅读全文
posted @ 2023-04-06 11:24 companion
阅读(38)
评论(0)
推荐(0)
编辑
100-springcloud-双注册双订阅模式
摘要: 参考文章: https://blog.csdn.net/zongzhankui/article/details/122644078 spring.autoconfigure.exclude=org.springframework.cloud.client.serviceregistry.Servic
阅读全文
posted @ 2023-04-06 11:18 companion
阅读(12)
评论(0)
推荐(0)
编辑
7-springcloud-eureka-3-搭建与配置eureka服务注册中心
摘要: Spring Cloud 要使用 Eureka 注册中心非常简单和方便,Spring Cloud 中的 Eureka 服务注册中心实际上也是一个 Spring Boot 工程,我们只需通过引入相关依赖和注解配置就能让 Spring Boot 构建的微服务应用轻松地与 Eureka 进行整合。 具体步
阅读全文
posted @ 2023-04-04 17:45 companion
阅读(59)
评论(0)
推荐(0)
编辑
6-springcloud-eureka-2-eureka是什么?
摘要: Eureka是Netflix的子模块之一,也是一个核心的模块,Eureka 采用了 C-S(客户端/服务端)的设计架构,也就是 Eureka 由两个组件组成:Eureka 服务端和 Eureka 客户端。 Eureka Server(一个独立的项目) 用于注册服务以及实现服务的负载平衡和故障转移,它
阅读全文
posted @ 2023-04-04 17:29 companion
阅读(12)
评论(0)
推荐(0)
编辑
5-springcloud-eureka-1-服务注册与发现是什么?
摘要: 前面手动直接调用的方式,当服务接口增多,这种手动指定接口地址的方式变得非常难以维护,SpringCloud提供了多种服务注册与发现的实现方式,Spring Cloud 支持得最好的是 Eureka,其次是 Consul,再次是 Zookeeper。 什么是服务注册? 服务注册:将服务所在主机、端口、
阅读全文
posted @ 2023-04-04 17:27 companion
阅读(8)
评论(0)
推荐(0)
编辑
4-springcloud实现服务消费方直接调用服务提供方
摘要: 服务消费方直接调用服务提供方 1、创建一个 SpringBoot 工程,并且添加 SpringBoot 的相关依赖; 2、创建服务提供者的访问方法,也就是后续消费者如何访问提供者; Spring Cloud 是基于 rest 的访问,所以我们添加一个 Controller,在该 Controller
阅读全文
posted @ 2023-04-04 15:55 companion
阅读(82)
评论(0)
推荐(0)
编辑
3-springcloud整体架构及调用举例
摘要: Spring Cloud 的整体架构 Service Provider: 暴露服务的服务提供方。 Service Consumer:调用远程服务的服务消费方。 EureKa Server: 服务注册中心和服务发现中心。
阅读全文
posted @ 2023-04-04 15:47 companion
阅读(12)
评论(0)
推荐(0)
编辑
required a bean of type 'org.springframework.web.client.RestTemplate' that could not be found.
摘要: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2023-04-04 14:54:30.963 ERROR 49212 [
阅读全文
posted @ 2023-04-04 14:57 companion
阅读(247)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
···
23
下一页
导航
博客园
首页
联系
订阅
管理
公告