spring-cloud Hoxton.SR2 总章

spring-cloud Hoxton.SR2 总章

最开始学习springcloud,大概是在2016年底的时候,那个时候,springboot、springcloud应用还没有目前这么常见,刚刚接触的时候,给人的感觉,确实还是比较震撼的,有点颠覆了之前的一些想法,确实是涨了知识和见解:原来应用,还可以这么玩;之前更多的是,单个应用,分个模块(RPC、hession、dubbo……),有钱的企业,F5负载一下,没有钱的,nginx搞一搞也可以;这样的,基于客户端的负载均衡,可以选择的,太少(也可能当时,自己比较菜鸡,接触得比较少~);整个springcloud,使整个微服务更加平民化了。

整理整个文章,确实也花了不少的时间,也查看了大量的相关的书籍,文档,官网,以及源代码;整个过程中,确实也是不断的学习和深化整个技术栈。

本地项目的基础环境

环境版本
jdk1.8.0_201
maven3.6.0
Spring-boot2.2.4.RELEASE
Spring-cloudHoxton.SR2

正片

《<一>spring-cloud Hoxton.SR2版 服务注册与发现–eureka搭建以及集群搭建》

《<二>spring-cloud Hoxton.SR2 负载均衡ribbon搭建使用》

《<三>spring-cloud Hoxton.SR2 负载均衡openfeign搭建使用》

《<四>spring-cloud Hoxton.SR2 断路器hystrix搭建使用》

《<五>spring-cloud Hoxton.SR2 hystrix Dashboard监控搭建使用》

《<六>spring-cloud Hoxton.SR2 网关组件zuul搭建使用》

《<七>spring-cloud Hoxton.SR2 网关组件gateway搭建使用》

《<八>spring-cloud Hoxton.SR2 配置中心config服务端、客户端的搭建使用》

《<九>spring-cloud Hoxton.SR2 spring-cloud-bus消息总线的搭建使用》

番外篇

《<番外篇>docker 、docker-compose环境部署eureka集群》

《<番外篇>spring-cloud Hoxton.SR2 eureka客户端自动装配部分源码解析,以及@EnableEurekaClient注解详解》

《<番外篇>spring-cloud Hoxton.SR2版 服务注册与发现–zookeeper搭建以及远程调用(openfeign)使用》

《<番外篇>spring-cloud Hoxton.SR2版 服务注册与发现–consul搭建以及远程调用(openfeign)使用》

《<番外篇>spring-cloud Hoxton.SR2 负载均衡ribbon自动装配,负载均衡部分源码解析》

《<番外篇>spring-cloud Hoxton.SR2 openfeign自动装配部分源码解析,以及@EnableFeignClients注解详解》

《<番外篇>spring-cloud Hoxton.SR2 @SpringCloudApplication注解、@EnableDiscoveryClient注解详解》

具体代码信息,可以查看《码云》

项目说明 该项目是一个典型的由Spring Cloud管理的微服务项目,主要包括如下模块 micro-service-cloud─────────────────顶层项目 ├──cloud-service-core───────────────基础核心模块 ├──cloud-service-tools──────────────全局通用工具类 ├──cloud-service-reids──────────────Redis二次封装 ├──cloud-eureka-server──────────────服务注册中心[8761] ├──cloud-turbine-server─────────────断路器聚合监控[8769] ├──cloud-zipkin-server──────────────链路追踪监控[9411] ├──cloud-zuul-server────────────────第一代服务网关(Zuul)[8080] ├──cloud-gateway-server─────────────第二代服务网关(Gateway)[8080] ├──cloud-modules-app────────────────App微服务模块 ├───────modules-app-user────────────App用户服务模块[努力更新中] ├───────modules-app-doctor──────────App医生服务模块[努力更新中] ├──cloud-modules-service────────────微服务通用服务模块 ├───────mongodb-file-service────────Mongodb文件服务模块[11010] ├───────redis-delay-service─────────延迟消费服务模块[11020] ├──cloud-modules-web────────────────Web微服务模块 ├───────modules-web-security────────Web医生服务模块[12010] ├───────modules-web-user────────────Web用户服务模块[12020] ├──cloud-modules-wechat─────────────Wechat微服务模块 ├───────modules-wechat-user─────────Wechat用户服务模块[努力更新中] └───────modules-wechat-doctor───────Wechat医生服务模块[努力更新中] 修改日志 修改日志 修改人 修改日期 版本计划 V1.0 刘岗强 2019-01-07 项目初始化 V1.1 刘岗强 待定 新增自动问答 项目介绍 基于Spring Cloud Finchley SR2 Spring Boot 2.0.7的最新版本。 核心基础项目内实现类自定义的权限注解,配合RBAC权限模型+拦截器即可实现权限的控制,具体的参考项目中的实现。同时也封装了一些顶层类和结果集等。 注册中心实现高可用配置,详情见eureka的one、two、three三个配置文件,摘要如下。 ------------------------------------------配置节点一---------------------------------------------- server: port: 8761 spring: application: name: cloud-eureka-server eureka: instance: hostname: cloud.server.one prefer-ip-address: true instance-id: ${spring.cloud.client.ip-address}:${server.port}:${spring.application.name} client: healthcheck: enabled: true register-with-eureka: false fetch-registry: false service-url: defaultZone: http://cloud.server.two:8762/eureka/,http://cloud.server.three:8763/eureka/ ------------------------------------------配置节点二----------------------------------------------
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

葵花下的獾

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值