Spring Cloud Alibaba架构整合 参考资料: https://www.imooc.com/u/1863086/articles?page=1 一. SpringCloudAlibaba1.1 背景 什么是SpringCloudAlibaba? 阿里巴巴结合自身微服务实践,开源的微服务全家桶 在Spring Cloud项目中孵化,很可能成为Spring Cloud第二代标准的实现 在业界广泛使用,已有很多成功案例 Spr 2020-03-02 08_框架技术 > 05_SpringCloud #SpringCloud #SpringCloudAlibaba
JWT 通用令牌生成 官网:https://jwt.io/ 1. 简介JWT:Json Web Tokens 通用令牌生成算法。JSON Web令牌是一种开放的行业标准 RFC 7519方法,用于在双方之间安全地表示声明。重要、安全要求较高的信息交互,可以采用JWT算法。 Header - 头 json格式 头部信息:声明签名涉及的加密方式、令牌生成算法(JWT) PayLoad - 有效荷载 json格 2020-03-02 08_框架技术 > 10_JWT #JWT
01-Spring Cloud Gateway 官网地址:https://spring.io/projects/spring-cloud-gateway 中文文档参考:https://www.jianshu.com/p/6ff196940b67 1. Gateway 简介Spring Cloud Gateway 是 Spring Cloud 的一个全新项目,该项目是基于Netty、Reactor以及WEbFlux构建,它旨在为微服务架构提供一 2020-03-02 14_微服务 > 04_API网关 #微服务 #SpringCloudAlibaba #Gateway
02-统一网关服务 官网地址:https://spring.io/projects/spring-cloud-gateway 中文文档参考:https://www.jianshu.com/p/6ff196940b67 Spring Cloud Gateway:提供网关服务 网关的核心作用: 路由匹配 可以进行服务匹配转发 cookie、header、path 等 过滤 实现请求的过滤处理 参数的非法校验、令牌校验 2020-03-02 14_微服务 > 04_API网关 #微服务 #SpringCloudAlibaba #Gateway
02-Spring Cloud Ribbon GitHub地址:https://github.com/Netflix/ribbon 官网地址:https://cloud.spring.io/spring-cloud-static/spring-cloud-netflix/2.1.0.RC2/single/spring-cloud-netflix.html 负载均衡实现:https://www.jb51.net/article/154446. 2020-03-02 14_微服务 > 03_远程服务调用 #Feign #微服务 #SpringCloudAlibaba #Ribbon
01-Spring Cloud Feign 官网文档:https://spring.io/projects/spring-cloud-openfeign 1. 简介Spring Cloud OpenFeign : Declarative REST Client: Feign(声明式REST服务调用)是一种声明式的web 客户端,可以使用它的注解创建接口,它也支持自定义编解码。Spring Cloud 集成了 Ribbon 和 Eureka 2020-03-02 14_微服务 > 03_远程服务调用 #Feign #微服务 #SpringCloudAlibaba
Spring Cloud Sleuth 官方地址:https://spring.io/projects/spring-cloud-sleuth 中文文档参考:https://segmentfault.com/a/1190000018986743 1. Sleuth 简介Spring Cloud Sleuth为Spring Cloud实现了分布式跟踪解决方案。其实是一个工具,它在整个分布式系统中能跟踪一个用户请求的过程(包括数据采集,数 2020-03-02 14_微服务 > 06_链路追踪 #微服务 #SpringCloudAlibaba #Sleuth
Sentinel概述和使用 官网地址:https://github.com/alibaba/Sentinel/releases 中文文档参考:https://github.com/alibaba/Sentinel/wiki/%E4%B8%BB%E9%A1%B5 1. Sentinel 简介Sentinel:阿里巴巴开源的服务容错框架,也叫:流量防卫兵。可以在高并发下提高服务的稳定性!可以实现:1. 服务降级(当服务不可用的 2020-03-02 14_微服务 > 05_限流降级 #微服务 #SpringCloudAlibaba #Sentinel
Mail 服务 Demo 1. 服务 demo controller 1234567891011@RestController@RequestMapping("/mail")public class MailController { @Autowired private MailService mailServcer; @GetMapping("/sendCod 2020-03-02 14_微服务 > 08_邮箱服务 #微服务 #邮件服务
01-支付宝支付 官网地址:https://www.alipay.com/ 沙箱环境:https://opendocs.alipay.com/open/200/105311 1. 封装二维码操作QrCodeUtil-二维码生成与解析 2. 支付宝支付 Demo2.1 依赖 jar123456<!-- https://mvnrepository.com/artifact/com.alipay.sdk/alip 2020-03-02 14_微服务 > 10_支付服务 #微服务 #SpringCloudAlibaba #支付服务