腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(1574)
视频
沙龙
1
回答
Spring
Cloud
Gateway
-
删除
除
一条
路由
以外
的
所有
路由
的
请求
头
spring
、
spring-cloud
、
spring-cloud-gateway
我在我们
的
应用中使用了
spring
cloud
gateway
。我们需要从
所有
配置
的
路由
中
删除
所有
敏感报头。我已经将其配置如下-
spring
:
gateway
: #Remove All the sensitive request现在我们只需要将Authorization报头传递给其中一个<em
浏览 168
提问于2021-01-12
得票数 0
2
回答
Spring
Cloud
Gateway
-为每条
路由
设置不同
的
代理
spring
、
proxy
、
spring-webflux
、
http-proxy
、
spring-cloud-gateway
我们是否可以为每条
路由
配置代理。传入
请求
A ->
路由
A匹配->仅转发到目标系统传入
请求
B ->
路由
B匹配目标系统调用
的
->集代理使用代理转发到目标系统
spring
.
cloud
.
gateway
.httpclient.proxy.host=
spring</em
浏览 24
提问于2021-07-14
得票数 0
1
回答
Spring
Cloud
Gateway
自动
路由
到Eureka服务
java
、
spring
、
netflix-eureka
、
spring-cloud-gateway
我使用
Spring
创建微服务。我使用Eureka进行服务发现,使用Zuul进行
路由
。现在我想切换到
Spring
Cloud
Gateway
(因为是非阻塞性质),但我想不出一种自动
路由
到每个Eureka服务
的
方法。例如,如果一个服务'eureka-client‘注册到Eureka,Zuul本身就会为这个服务提供一个类似localhost:8762/eureka-client
的
路径。使用
Spring
Clou
浏览 30
提问于2019-05-20
得票数 0
回答已采纳
1
回答
Spring
Cloud
Gateway
和DiscoveryClient
路由
spring-cloud-gateway
我正在尝试将一个使用
spring
-
cloud
-starter-netflix-zuul
的
网关迁移到
Spring
Cloud
Gateway
,我遇到了
请求
路由
的
问题。,我正在尝试配置一个等价
的
路由
:
spring
:
gateway
: - id: account-service-r
浏览 28
提问于2019-03-13
得票数 7
2
回答
运行时修改
Spring
Cloud
Gateway
路由
spring-cloud-gateway
我想要在服务器运行时添加或
删除
Spring
Cloud
Gateway
路由
。我正在使用初始化网关
路由
。这是完美的工作。但是,现在我想在
Spring
Cloud
Gateway
服务器运行时修改、添加和
删除
路由
。我可以看到包含我
的
路由
,但我看不到修改其内容
的
方法。在我
的
设置中,是空
的
,所以我看不到在我
的</
浏览 5
提问于2020-10-01
得票数 0
2
回答
Spring
Cloud
Gateway
是否同时监听HTTP和HTTPS?
spring
、
spring-cloud-gateway
如何配置
Spring
Cloud
Gateway
服务器同时接受HTTP和HTTPS连接? 我在网关服务器上将SSL配置为端口443。我还希望在端口80上接受HTTP
请求
。我知道如何使用运行Tomcat
的
标准
Spring
Boot应用程序执行此操作,但我需要知道如何配置
Gateway
使用
的
Netty服务器。
浏览 32
提问于2019-03-13
得票数 3
3
回答
Spring
Cloud
Gateway
简单示例不起作用
spring
、
spring-cloud-gateway
大多数基础
的
Spring
Cloud
Gateway
应用程序无法正常工作。
浏览 0
提问于2019-06-27
得票数 1
1
回答
使用
spring
云网关时无效
的
cors
请求
cors
、
same-origin-policy
、
cross-origin-resource-policy
我有一个
spring
云网关,它转发到下游服务器,我还配置了筛选器来返回以下标
头
access-control-allow-headers: origin, content-type, acceptno-cachevary: access-control-request-method下面的是从铬发出
请求
时
的
请求
头
; wow64) applewebkit&
浏览 28
提问于2022-06-19
得票数 1
1
回答
清理
Spring
Cloud
Gateway
中
的
请求
URI
spring-cloud-gateway
我想在使用
Spring
Cloud
Gateway
时清理部分uri。 例如:http://localhost:8080//login。在本例中,我希望在
Spring
Gateway
尝试为该
请求
找到合适
的
路由
之前,就
删除
双斜杠和单斜杠。 使用全局过滤器是正确
的
方法吗?或者有没有其他
的
钩子可以用来拦截
请求
并修改uri?
浏览 29
提问于2019-09-12
得票数 0
1
回答
如何移除响应头部,如Access-Control-Allow-Origin,Access-Control-Allow-Credentials
spring-cloud-gateway
我知道可以通过配置移除zuul网关,但是springcloud-
gateway
是如何实现
的
呢?zuul:敏感-标
头
: Cookie,Set-Cookie已忽略-标
头
: Access-Control-Allow-Origin,Access-Control-Allow-Credentials
浏览 2
提问于2019-08-07
得票数 2
1
回答
带有弹簧云网关
的
双CORS报头
cors
、
spring-cloud-gateway
如何禁用网关上
的
CORS?我
的
意思是真正
的
禁用,在stackoeverflow或其他地方搜索“禁用网关CORS”时,不允许来自
所有
来源
的
所有
方法
的
请求
。我
的
问题是
spring
云网关也设置了一些
头
,这会导致重复
的
CORS
头
和客户端应用程序中
的
CORS错误。因此,我希望完全禁用网关上
的
CORS过滤器(理想情况下是全局
的</e
浏览 16
提问于2022-11-15
得票数 0
回答已采纳
1
回答
如何在中将
路由
分发到多个YML文件?
spring-cloud-gateway
我目前正在实现
Spring
,希望将我
的
路由
指定为多个文件,如下所示: - Created YML 1 with routes to A我不想接触原始配置(YML 1),而是希望为C创建一个新
的
YML,并期望
路由
C附加
浏览 4
提问于2020-03-26
得票数 2
1
回答
Eureka服务器在微服务体系结构中
的
应用
microservices
、
netflix-eureka
、
spring-cloud-gateway
我在我
的
微服务应用程序Ex中使用"
Spring
网关“:
spring
.
cloud
.
gateway
.routes[0].uri=http://localhost:8100/
spring
.
cloud
.
gateway
.routes[0].predicates[0]=Pa
浏览 5
提问于2022-08-10
得票数 0
2
回答
Spring
Cloud
Gateway
:不
路由
请求
,最终遇到413
请求
实体过大
java
、
spring
、
rest
、
gateway
、
spring-cloud-gateway
我正在尝试设置一个简单
的
Spring
Cloud
Gateway
示例。,它将
路由
到这些服务之一。[0].id=routezero
spring
.
cloud
.
gateway
.routes,它不再调用数百次,
请求
立即返回,但响应是空
的
,
浏览 0
提问于2020-06-17
得票数 1
2
回答
如何在
Spring
Cloud
Gateway
中获取
请求
头
值
spring-boot
、
spring-cloud-gateway
我正在使用
spring
cloud
gateway
实现API
路由
,在其中一个用例中,我需要从传入
请求
中获取头部值并将其用于一些处理,进一步将处理后
的
值作为头部添加到传出(
路由
) API调用中。如何在routeBuilder中从传入
的
接口调用中获取
头
值?
浏览 1
提问于2018-07-10
得票数 2
1
回答
Spring
Cloud
Gateway
有默认
的
请求
超时时间吗?
spring-cloud-gateway
在documentation中,我确实看到了如何使用Hystrix实现超时,但我只想确保没有实现默认超时。
浏览 1340
提问于2019-02-22
得票数 4
1
回答
登录到网关背后
的
Keycloak
spring-cloud
、
keycloak
、
api-gateway
、
keycloak-rest-api
因此,我已经配置了一个
路由
,但是由于某种原因,即使密钥披风正在运行并且端点是正确
的
,也没有找到404错误。直接向上述端点发送HTTP
请求
,而不通过API网关,可以工作。下面是我
的
Spring
网关
路由
配置:
spring
.application.name=my-
gateway
-service
spring
.security.oauth2/protocol/openid-conn
浏览 4
提问于2020-06-30
得票数 2
2
回答
Spring
网关上
的
CORS配置问题
spring
、
cors
、
spring-cloud-gateway
我能够使用
Spring
中
的
RouteLocator将
请求
路由
到相应
的
服务。但我无法为正在通过RouteLocator
路由
的
路径配置CORS。
cloud
: globalcors: '[/**]
浏览 1
提问于2019-01-21
得票数 2
回答已采纳
1
回答
如何在
Spring
Cloud
Gateway
中通过代码配置
请求
超时
spring-boot
、
spring-cloud-gateway
我需要在代码中为
所有
路由
配置
请求
超时。我知道全局超时可以通过application.properties中
的
以下属性来配置,但是如何在代码中配置它们呢?
spring
.
cloud
.
gateway
.httpclient.connect-timeout=1000
spring
.
cloud
.
gateway
.httpclient.response-timeout
浏览 164
提问于2021-05-19
得票数 1
回答已采纳
3
回答
Zuul1
的
替代品是
Spring
Cloud
Gateway
还是Zuul2?
java
、
spring
、
spring-boot
、
spring-cloud
、
spring-cloud-gateway
由于
Spring
Cloud
团队已经放弃了Zuul模块
的
开发,我们正在迁移到
Spring
Cloud
Gateway
或Zuul2,但我相信Zuul2需要在架构上做很多改变,需要在微服务方面进行重大改变(如果我错了,请纠正我),有谁能推荐一下zuul2或
Spring
-
Cloud
-
Gateway
,有没有人或你知道有什么技术巨头在使用
Spring
-
Cloud
-
Gateway
?
浏览 58
提问于2019-06-10
得票数 8
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Spring Cloud推出新成员Spring Cloud Gateway
亿级流量架构的网关设计思路与常见网关对比
JWT对SpringCloud进行系统认证和服务鉴权(一)
分布式服务一篇概览
Spring WebFlux和Spring Cloud进行响应式微服务开发
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券