随笔 - 229
文章 - 0
评论 - 10
阅读 -
26万
随笔分类 - SpringCloud
srping-cloud-stream集成rocketmq
摘要:参考: https://blog.csdn.net/elim168/article/details/101082105
阅读全文
Ribbon配置随访问策略
摘要:Ribbon负载策略有以下几种: 默认是使用轮询策略. 在springboot项目中,使用ribbon+RestTemplate可以很方便的实现的实现轮询负载策略 配置代码如下: @Configuration public class ApplicationContextConfig { @Bean
阅读全文
springboot与cloud版本兼容
摘要:参考: https://start.spring.io/actuator/info 在线分析工具: https://tool.lu/
阅读全文
SpringCLoud之搭建Zuul网关集群
摘要:1.使用技术 Springboot,SpringCloud,Zuul,Nignx 2.目的 使用Zuul搭建微服务高可用的网关 3.项目创建 3.1 创建注册中心(略) 3.2 创建一个hello-service的服务工程 3.3 创建springcloud-zuul-ha网关服务 3.3.1 创建
阅读全文
微服务项目框架搭建
摘要:一. 服务说明 补充说明: 之后要创建member-service,order-service两个接口服务,是为了提高代码的覆用性.具体可参见后面的代码 二.创建项目 1.整体结构 2.创建springcloud-hystrix父工程 2.1 创建一个maven项目(略) 2.1 pom.xml依赖
阅读全文