Spring Cloud

1. 

      Zuul中传递Token到路由的服务中

2.    spring cloud 与spring boot版本选择 比较详细的版本对应

https://start.spring.io/actuator/info

Spring Cloud

Spring Cloud Alibaba Reference Documentation

 

 

springCloud Alibaba-sentinel

https://github.com/alibaba/Sentinel/wiki/%E7%86%94%E6%96%AD%E9%99%8D%E7%BA%A7

 

  

https://github.com/alibaba/Sentinel/wiki/%E4%BB%8B%E7%BB%8D

springCloud gateway

 

zuul 

 

spring cloud gateway

Spring Cloud Gateway

 Spring WebFluxs是Spring5.0引入的新的响应式框架,区别于Spring MVC,它不需要依赖Servlet API,它是完全异步非阻塞的,并且基于Reactor来实现响应式流规范。

 

 指定时间点之后 路由生效

 -Cookie

 

 

 

 

 

 Spring Cloud Gateway

 Spring Cloud Gateway

 Spring Cloud Gateway

 

 

 自定义过滤器

spring cloud config

Spring Cloud Config

spring cloud bus

Spring Cloud Bus

Spring Cloud Alibaba Reference Documentation

spring cloud alibaba nacos=eureka+config+bus

home

Nacos Spring Cloud 快速开始

spring-cloud-alibaba/nacos-discovery.adoc at master · alibaba/spring-cloud-alibaba · GitHub

spring-cloud-alibaba/nacos-config.adoc at master · alibaba/spring-cloud-alibaba · GitHub

GitHub - alibaba/spring-cloud-alibaba: Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.

Spring Cloud Alibaba Reference Documentation

Spring Cloud Alibaba Reference Documentation

nacos分类管理

 

nacos 集群和持久化配置

  1. 单机的话,出现故障,就完蛋了

   所以要建立nacos集群

  2.如果配置重启丢失,也完蛋

    所以要持久化配置

集群部署说明

nacos自带的持久化数据库

https://github.com/alibaba/nacos/blob/develop/pom.xml

nacos-mysql.sql脚本所在位置

比如:D:\project\au\20210820au\nacos\conf 

application.properties配置所在位置

比如:D:\project\au\20210820au\nacos\conf

spring.datasource.platform=mysql

db.num=1

db.url.0=jdbc:mysql://127.0.0.1:3306/nacos_devtest?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true

db.user=root

db.password=root

linux安装nacos

Releases · alibaba/nacos · GitHub

linux服务器上nacos的集群配置cluster.conf

整理出linux服务器的ip,注意不要使用127.0.0.1

修改startup.sh 

 修改startup.sh之后,执行

使用Elasticsearch作为Zipkin Server的后端存储

搭建

  • 前往 https://www.elastic.co/products/elasticsearch 下载Elasticsearch,笔者使用的版本是 elasticsearch-6.5.3

  • 启动Elasticsearch:

    1
    2
    3
    4
    
    cd elasticsearch-6.5.3/bin
    ./elasticsearch
    
    # Elasticsearch集群的搭建大家自己百度一下吧,也很简单。本文主要是讲Zipkin,只用一个实例演示就可以了。

windows启动 

 

 java -jar zipkin-server-2.23.15-exec.jar --STORAGE_TYPE=elasticsearch --ES_HOSTS=localhost:9200

ElasticSearch入门详解(结合Kibana)

https://www.jianshu.com/p/92e49c18ac96

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值