ICode9

精准搜索请尝试: 精确搜索
  • Spring Cloud Gateway系列【4】初始化加载流程源码解析2021-12-01 18:31:27

    文章目录 核心源码Route类AsyncPredicate接口ServerWebExchange 接口GatewayFilterRouteLocatorRouteDefinitionLocator接口RouteDefinition 类 初始化加载流程1. 路由构建方式2. 加载配置3. 加载PropertiesRouteDefinitionLocator4. 加载RouteDefinitionRouteLocator5. 加

  • gateway中Ribbon简单配置使用(一步到位)2021-12-01 15:00:54

    ribbon是一个用于负载均衡的组件 配置 导入依赖 要导入netflix-ribbon的依赖,springcloud-ribbon的依赖可能会出现版本不匹配的问题 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-ribb

  • 网关Gateway应用实践2021-11-30 21:35:06

    网关概述 网关本质上要提供一个各种服务访问的入口,并提供服务接收并转发所有内外部的客户端调用,还有就是权限认证,限流控制等等。Spring Cloud Gateway是Spring公司基于Spring 5.0,Spring Boot 2.0 和 等技术开发的一个网关组件,它旨在为微服务架构提供一种简单有效的统一的 API入

  • Gateway结合Sentinel 限流2021-11-30 12:02:05

    分组限流 实际开发中我们往往是分组限流 我们先为provider类编写几个分组接口 @GetMapping("/api1/demo1") public String demo1(){ return "api1-demo1"; } @GetMapping("/api1/demo2") public String demo2(){ return "api1-demo2

  • springcloud学习之网关-Gateway2021-11-26 09:03:41

    由于Gateway底层使用了netty框架,所以性能很高,是异步非阻塞的 新建工程 添加pom依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency> 添加yml配置 server: port: 9527

  • SpringCloudGateway内置GatewayFilter工厂类之Path类过滤器 (三)2021-11-25 18:01:20

    1:PrefixPath   将所有请求路径前加上路径;value - PrefixPath=value spring: cloud: gateway: routes: - id: prefixpath_route uri: http://example.org filters: - PrefixPath=value 2:RewritePath   利用路径正则表达式灵活替换

  • Spring Cloud Gateway过滤器精确控制异常返回(分析篇)2021-11-25 08:31:34

    欢迎访问我的GitHub 这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demos 本篇概览 在《Spring Cloud Gateway修改请求和响应body的内容》一文中,咱们通过filter成功修改请求body的内容,当时留下个问题:在filter中如果发生异常(例如请求参数不合法),抛

  • 网关协议(Gateway Protocol)2021-11-24 22:05:22

    网关协议 Internet中的路由器称为IP网关。网关协议用于网关之间交换路由信息。 1.自治系统(IGP和EGP) 自治系统是由同构型的网关连接的互联网,这样的系统往往是由一个网络管理中心控制的。自治系统内部的网关之间执行内部网关协议(IGP),互相交换路由信息。IGP是自治系统内部专用的,为

  • 网络工程笔记之BGP边界网关协议2021-11-23 09:03:17

    BGP基础 基础知识:        路由协议通常分为内部网关协议(IGP:Interior Gateway Protocol)和外部网关协议(EGP:Exterior Gateway Protocol)两大类。一般来说:IGP用于自治系统AS(Autonmous System)内部,EGP用于AS之间。最早的EGP是一种称为GGP(Gateway-to-Gateway protocol)的路由

  • Spring Cloud Gateway限流实战2021-11-23 09:00:23

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java、Docker、Kubernetes、DevOPS等; 本篇概览 本文是《Spring Cloud Gateway实战》系列的第八篇,经过前面的学习,咱们对过滤器已了解得差不多,今天来补全过滤器的最后一个版块:限

  • Spring Cloud GateWay 网关启动异常2021-11-21 11:31:45

    错误信息: Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found. 启动spri

  • Spring Cloud Gateway的断路器(CircuitBreaker)功能2021-11-19 07:00:14

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java、Docker、Kubernetes、DevOPS等; 本篇概览 一起深入了解Spring Cloud Gateway的断路器(CircuitBreaker)功能: 先聊聊理论 再结合官方和大神的信息确定技术栈 再动手开发,先

  • Spring Cloud Gateway实战之五:内置filter2021-11-18 07:31:19

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java、Docker、Kubernetes、DevOPS等; 本篇概览 作为《Spring Cloud Gateway实战》系列的第五篇,是时候了解过滤器(filter)的作用了,本篇咱们一起来了解Spring Cloud Gateway内置好

  • gateway2021-11-17 22:34:19

    gateway gateway描述 网关统一服务入口,主要用于身份认证、业务鉴权、防数据篡改、响应数据脱敏等 gateway实现 引入网关依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency> 同时需要

  • SpringCloud微服务实战——搭建企业级开发框架(十八):集成Gateway实现微服务路由转发2021-11-16 12:31:19

      在微服务架构里,服务的粒度被进一步细分,各个业务服务可以被独立的设计、开发、测试、部署和管理。这时,各个独立部署单元可以用不同的开发测试团队维护,可以使用不同的编程语言和技术平台进行设计,这就要求必须使用一种语言和平 台无关的服务协议作为各个单元间的通讯方式。 API

  • GateWay是什么2021-11-14 15:35:41

    概述 Cloud全家桶中有个很重要的组件就是网关,在1.x版本中都是采用的Zuul网关; 但在2.x版本中,zuul的升级一直跳票,SpringCloud最后自己研发了一个网关替代Zuul,那就是SpringCloud Gateway—句话:gateway是原zuul1.x版的替代 Gateway是在Spring生态系统之上构建的API网关服务,基于Spri

  • 网关_订单2021-11-13 09:32:46

    一、网关 作用: ​ 1、可以解决跨域请求 ​ 2、之前调不同的微服务都是通过不同的网络地址去获取,现在可以通过一个网络地址,去调用不同的服务。 网关核心概念: ​ 1、路由:由ID、目标URL、一组断言、过滤器Filter ​ 2、断言:提前写好的条件 ​ 3、过滤器:主要就两种,Gateway Filter

  • 20-统一网关Gateway-全局过滤器2021-11-12 17:02:43

    全局过滤器 上一节学习的过滤器,网关提供了31种,但每一种过滤器的作用都是固定的。如果我们希望拦截请求,做自己的业务逻辑则没办法实现。 3.5.1.全局过滤器作用 全局过滤器的作用也是处理一切进入网关的请求和微服务响应,与GatewayFilter的作用一样。区别在于GatewayFilter通过

  • Gateway Webflux过滤器修改响应2021-11-10 17:02:57

    import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.hhwy.fweb.gateway.constant.GatewayConstant; import org.apache.commons.codec.Charsets; import org.reactivestreams.Publisher; import org.springframework.core.io.buffer.Data

  • Spring Cloud Gateway实战之二:更多路由配置方式2021-11-09 09:04:49

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java、Docker、Kubernetes、DevOPS等; 本篇概览 本文是《Spring Cloud Gateway实战》系列的第二篇,通过前文咱们了解到Spring Cloud Gateway的核心是路由配置,然后在本地applicatio

  • 解决springcloud gateway 3.X跨域问题2021-11-08 13:58:47

    我之前报的错误: When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of origins, list them explicitly o

  • swagger增强knife4j在gateway中的使用入门2021-11-06 20:31:56

    knife4j在gateway中的使用入门 文章目录 knife4j在gateway中的使用入门1. 简介1.1 pom 2. gateway集成2.1 gateway 网关模块2.2 微服务模块 3.界面 1. 简介 knife4j 是对swagger的增强。 1.1 pom <dependency> <groupId>com.github.xiaoymin</groupId> <artif

  • SMS Gateway Jasmin搭建12021-11-06 18:06:32

    Jasmin短信网关搭建步骤 容器方式部署1. Docker安装2. Docker Compose 安装3. 部署Jasmin4. jCLI登录测试 容器方式部署 1. Docker安装 sudo yum install -y yum-utils sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.re

  • springcloud gateway整合启动报错2021-11-06 15:01:22

    *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.cloud.gateway.config.Ga

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有