springcloud gateway+eureka+config+oauth2+feign
代码
整套代码已上传开源,可下载参考学习:
https://gitee.com/chench3home/springcloud-eureka-config-gateway-oauth2-feign.git
软件架构
springcloud-eureka
springcloud-config
springcloud-gateway
springcloud-oauth2
springcloud-feign
springcloud-ribbon
redis
mysql
rabbitmq
说明
springcloud的整套体系(仅供学习)
—微服务架构----------
eureka集群(wservice-server+wservice-server-backup)
config+git+bus+rabbitmq远程配置动态刷新配置+集群(wservice-config+wservice-config-backup)
gateway路由,集成hystrix熔断器+限流等配置(wservice-gateway)
oauth2统一鉴权中心,jwt或mysql两种方式,通过请求头获取授权信息(wservice-oauth)
—接口服务提供--------
feign调用服务中心接口,hystrix熔断器,请求头+参数传递,ribbon集群(wservice-client)
api后台接口,提供给feign调用(wservice-api)
—其他----
公共模块和独立模块
wservice-rest
wservice-redis
wservice-common
wservice-constant
本文地址:https://blog.csdn.net/chaihuichen/article/details/109639888
推荐阅读