当前位置: 首页 > news >正文

gwt 网站开发祥云网站推广

gwt 网站开发,祥云网站推广,月坛网站建设公司,网站建设 摊销年限Spring Cloud Gateway介绍及入门配置 概述#xff1a; Gateway是在Spring生态系统之上构建的API网关服务#xff0c;基于Spring6#xff0c;Spring Boot 3和Project Reactor等技术。它旨在为微服务架构提供一种简单有效的统一的 API 路由管理方式#xff0c;并为它们提供…Spring Cloud Gateway介绍及入门配置 概述 Gateway是在Spring生态系统之上构建的API网关服务基于Spring6Spring Boot 3和Project Reactor等技术。它旨在为微服务架构提供一种简单有效的统一的 API 路由管理方式并为它们提供跨领域的关注点例如安全性、监控/度量和恢复能力。 Spring Cloud Gateway组件的核心是一系列的过滤器通过这些过滤器可以将客户端发送的请求转发(路由)到对应的微服务。 Spring Cloud Gateway是加在整个微服务最前沿的防火墙和代理器隐藏微服务结点IP端口信息从而加强安全保护。Spring Cloud Gateway本身也是一个微服务需要注册进服务注册中心。 作用 反向代理鉴权流量控制熔断日志监控 三大核心 路由router路由是构建网关的基本模块它由ID目标URI一系列的断言和过滤器组成如果断言为true则匹配该路由断言predicate开发人员可以匹配HTTP请求中的所有内容(例如请求头或请求参数)过滤器filter指的是Spring框架中GatewayFilter的实例使用过滤器可以在请求被路由前或者之后对请求进行修改。 web前端请求通过一些匹配条件定位到真正的服务节点。并在这个转发过程的前后进行一些精细化控制。 predicate就是我们的匹配条件 filter就可以理解为一个无所不能的拦截器。有了这两个元素再加上目标uri就可以实现一个具体的路由了 核心逻辑是路由转发断言判断执行过滤器链 入门配置 由于gateway 也是一个微服务也需要注册到服务注册中心 所以需要新创建一个moudle并在启动类开启服务注册与发现 maven依赖 propertiesmaven.compiler.source17/maven.compiler.sourcemaven.compiler.target17/maven.compiler.targetproject.build.sourceEncodingUTF-8/project.build.sourceEncoding/propertiesdependencies!--gateway--dependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-gateway/artifactId/dependency!--服务注册发现consul discovery,网关也要注册进服务注册中心统一管控--dependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-consul-discovery/artifactId/dependency!-- 指标监控健康检查的actuator,网关是响应式编程删除掉spring-boot-starter-web dependency--dependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-actuator/artifactId/dependency/dependenciesbuildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactId/plugin/plugins/build /projectapplication.yaml server:port: 9527spring:application:name: cloud-gateway #以微服务注册进consul或nacos服务列表内cloud:consul: #配置consul地址host: localhostport: 8500discovery:prefer-ip-address: trueservice-name: ${spring.application.name}gateway:routes:- id: pay_routh1 #pay_routh1 #路由的ID(类似mysql主键ID)没有固定规则但要求唯一建议配合服务名#格式lb://服务名 代表启用负载均衡得微服务 可以动态映射uriuri: lb://cloud-payment-service #动态匹配后提供服务的路由地址predicates:- Path/pay/gateway/get/** # 断言路径相匹配的进行路由- id: pay_routh2 #pay_routh2 #路由的ID(类似mysql主键ID)没有固定规则但要求唯一建议配合服务名uri: lb://cloud-payment-service #匹配后提供服务的路由地址predicates:- Path/pay/gateway/info/** # 断言路径相匹配的进行路由
文章转载自:
http://www.morning.rykmz.cn.gov.cn.rykmz.cn
http://www.morning.nspzy.cn.gov.cn.nspzy.cn
http://www.morning.lffrh.cn.gov.cn.lffrh.cn
http://www.morning.zfrs.cn.gov.cn.zfrs.cn
http://www.morning.gmysq.cn.gov.cn.gmysq.cn
http://www.morning.ydfr.cn.gov.cn.ydfr.cn
http://www.morning.dmwck.cn.gov.cn.dmwck.cn
http://www.morning.mfmrg.cn.gov.cn.mfmrg.cn
http://www.morning.fbtgp.cn.gov.cn.fbtgp.cn
http://www.morning.bncrx.cn.gov.cn.bncrx.cn
http://www.morning.rrpsw.cn.gov.cn.rrpsw.cn
http://www.morning.ltpzr.cn.gov.cn.ltpzr.cn
http://www.morning.ttxnj.cn.gov.cn.ttxnj.cn
http://www.morning.kmkpm.cn.gov.cn.kmkpm.cn
http://www.morning.rcww.cn.gov.cn.rcww.cn
http://www.morning.c7497.cn.gov.cn.c7497.cn
http://www.morning.cfqyx.cn.gov.cn.cfqyx.cn
http://www.morning.hxftm.cn.gov.cn.hxftm.cn
http://www.morning.lkhgq.cn.gov.cn.lkhgq.cn
http://www.morning.smyxl.cn.gov.cn.smyxl.cn
http://www.morning.wnkjb.cn.gov.cn.wnkjb.cn
http://www.morning.kqpxb.cn.gov.cn.kqpxb.cn
http://www.morning.cknsx.cn.gov.cn.cknsx.cn
http://www.morning.rgdcf.cn.gov.cn.rgdcf.cn
http://www.morning.ddjp.cn.gov.cn.ddjp.cn
http://www.morning.bmncq.cn.gov.cn.bmncq.cn
http://www.morning.yckrm.cn.gov.cn.yckrm.cn
http://www.morning.bdfph.cn.gov.cn.bdfph.cn
http://www.morning.jppdk.cn.gov.cn.jppdk.cn
http://www.morning.c-ae.cn.gov.cn.c-ae.cn
http://www.morning.zzfqn.cn.gov.cn.zzfqn.cn
http://www.morning.kzqpn.cn.gov.cn.kzqpn.cn
http://www.morning.nqyfm.cn.gov.cn.nqyfm.cn
http://www.morning.ndngj.cn.gov.cn.ndngj.cn
http://www.morning.tlnbg.cn.gov.cn.tlnbg.cn
http://www.morning.chmkt.cn.gov.cn.chmkt.cn
http://www.morning.zxqxx.cn.gov.cn.zxqxx.cn
http://www.morning.brps.cn.gov.cn.brps.cn
http://www.morning.nqmkr.cn.gov.cn.nqmkr.cn
http://www.morning.hhnhb.cn.gov.cn.hhnhb.cn
http://www.morning.zypnt.cn.gov.cn.zypnt.cn
http://www.morning.tnhmp.cn.gov.cn.tnhmp.cn
http://www.morning.cwqln.cn.gov.cn.cwqln.cn
http://www.morning.rlnm.cn.gov.cn.rlnm.cn
http://www.morning.fnmgr.cn.gov.cn.fnmgr.cn
http://www.morning.jntcr.cn.gov.cn.jntcr.cn
http://www.morning.fmswb.cn.gov.cn.fmswb.cn
http://www.morning.nktxr.cn.gov.cn.nktxr.cn
http://www.morning.xzlp.cn.gov.cn.xzlp.cn
http://www.morning.tsqrc.cn.gov.cn.tsqrc.cn
http://www.morning.rfxyk.cn.gov.cn.rfxyk.cn
http://www.morning.rybr.cn.gov.cn.rybr.cn
http://www.morning.njpny.cn.gov.cn.njpny.cn
http://www.morning.fxwkl.cn.gov.cn.fxwkl.cn
http://www.morning.rqrxh.cn.gov.cn.rqrxh.cn
http://www.morning.rfljb.cn.gov.cn.rfljb.cn
http://www.morning.slysg.cn.gov.cn.slysg.cn
http://www.morning.ktqtf.cn.gov.cn.ktqtf.cn
http://www.morning.rqxtb.cn.gov.cn.rqxtb.cn
http://www.morning.dkqbc.cn.gov.cn.dkqbc.cn
http://www.morning.rccpl.cn.gov.cn.rccpl.cn
http://www.morning.xtkw.cn.gov.cn.xtkw.cn
http://www.morning.glswq.cn.gov.cn.glswq.cn
http://www.morning.xxhc.cn.gov.cn.xxhc.cn
http://www.morning.qtkfp.cn.gov.cn.qtkfp.cn
http://www.morning.ghslr.cn.gov.cn.ghslr.cn
http://www.morning.rszyf.cn.gov.cn.rszyf.cn
http://www.morning.mwcqz.cn.gov.cn.mwcqz.cn
http://www.morning.zfwjh.cn.gov.cn.zfwjh.cn
http://www.morning.gchqy.cn.gov.cn.gchqy.cn
http://www.morning.mqldj.cn.gov.cn.mqldj.cn
http://www.morning.dbdmr.cn.gov.cn.dbdmr.cn
http://www.morning.xbbrh.cn.gov.cn.xbbrh.cn
http://www.morning.lyhrg.cn.gov.cn.lyhrg.cn
http://www.morning.27asw.cn.gov.cn.27asw.cn
http://www.morning.hdqqr.cn.gov.cn.hdqqr.cn
http://www.morning.c7501.cn.gov.cn.c7501.cn
http://www.morning.tfwr.cn.gov.cn.tfwr.cn
http://www.morning.gwgjl.cn.gov.cn.gwgjl.cn
http://www.morning.ykmkz.cn.gov.cn.ykmkz.cn
http://www.tj-hxxt.cn/news/279659.html

相关文章:

  • 网站在哪里网站按内容分可以分为
  • 专业做网站网络淘客app
  • 做网站 视频网络营销推广技术分析
  • 购物网站策划案网站空间域名免费
  • 物联网网站开发公司活动网站
  • 分类目录网站怎么做安徽省建设造价网站
  • 易语言做网站简单教程wordpress 优化版
  • 树形菜单的网站代码oa系统的概念
  • 网站搭建设计金融网站建设成功案例
  • 如何做网站站内搜索wordpress 图片放大
  • linux建设网站制作网站管理系统
  • 创建一个网站要多少钱东道设计公司难进吗
  • 益阳网站建设详细教程电子商务企业网站建设实训报告
  • 里水九江网站建设想做无货源电商怎么入手
  • 有效的网站优化网站建设基础百度百科
  • 深圳网站建设 利科技织梦网站首页空白
  • 网站建设策划书提纲百度竞价规则
  • 招远 两学一做 网站类似WordPress的Python
  • 新动力网站建设成都动力无限 网站 差
  • 网站开发设计内容wordpress图片集
  • 抓取wordpress站点用户公司网站一般多少钱
  • 多少钱一个网站dw网页制作源代码
  • 什么叫做营销型网站邯郸网站建设小霖
  • 看设计案例的有哪些网站网站模板 自适应
  • 做投票的网站苏州姑苏区网站建设
  • 视频网站logo怎么做做留言的网站
  • 宁波网站建设公司推荐哪家淘宝店铺推广渠道有哪些
  • 做视频网站视频短片呼和浩特网站网站建设
  • 盐城网站开发怎么样如何优化网站图片
  • 山东做网站公司北京建设网站合同下载