Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

LP-SCN-GateWay-JWT-ConfigBus-Email

演示请下载视频查看

介绍

  1. 通过用户注册、验证码、邮箱三个微服务
  2. 构建SpringCloud+Eureka+Gateway+Feign(ribbon+hystrix)+Config+Bus(rabbitmq)
  3. 实现Eureka Server集群+网关+Nginx+微服务多实例+配置同步+负载均衡+熔断降级
  4. JWT Token鉴权

说明

  • @EnableEurekaServer以及集群下hostname(同IP主机或不同主机各有host)或不同IP
  • @EnableDiscoveryClient声明配置各微服务实例
  • @EnableFeignClients处理微服务间的调用,@FeignClient及实现FallbackFactory完成服务熔断降级,通过配置NFLoadBalancerRuleClassName选择负载均衡策略
  • 网关通过实现GlobalFilter的过滤器,达到用户合法JWT鉴权、设置API白名单以及指定API、毫秒的限流次数
  • 各微服务通过bootstrap.yml加载配置中心的yml文件
  • 能放到配置中心的所有yml,分类通用配置、邮箱配置、mybatis-plus配置、redis配置、业务自有配置等,通过config配置可按需组合
  • 工程启动顺序:Eureka Server >> Config-Bus >> GateWay >> Email >> Code >> User

Comments ( 0 )

Sign in for post a comment

About

SpringCloud实现Eureka Server集群+网关+Nginx+微服务多实例+配置同步+负载均衡+熔断降级+JWT Token鉴权,通过用户、验证码、邮箱三个微服务,达到请求->nginx->网关->链路调用->日志的过程 spread retract
Java
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more