Spring Cloud Alibaba架构 官网地址:https://spring.io/projects/spring-cloud-alibaba GitHub源码:https://github.com/alibaba/spring-cloud-alibaba https://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh.md 参考教程:https://www 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
Nacos配置中心 官网地址:https://nacos.io/zh-cn/index.html 中文文档:https://nacos.io/zh-cn/docs/architecture.html 1. Nacos 简介Nacos : 一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。 服务发现和服务健康监测 动态配置服务 动态 DNS 服务 服务及其元数据管理 1.1 Nacos的核心作用 服 2020-03-02 14_微服务 > 01_配置中心 #微服务 #SpringCloudAlibaba #Nacos
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
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 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
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
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
微服务 MultipartFile 文件上传 1. 原因默认情况下,在SpringCloud Alibaba 微服务项目中,无法通过消费者服务直接将前端上传的文件,以请求的方式发送到服务提供者来操作文件上传的。 因此需要在 OpenFeign 中将 文件名称 和 文件内容的Base64 封装为类,消费者添加 consumes 文件上传参数。 2. 解决2.1 依赖123456789101112<!-- 文件上传基本依赖 -->& 2020-03-02 14_微服务 > 07_文件上传 #微服务 #文件上传