腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(2419)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
如何读取在yml中定义的
spring
云网关路径?
我想在
过滤器
代码中读取
spring
云网关应用程序的yml
配置
中定义的路径属性: cloud: routes: uri: ${DEMO_URL} - Path=/api/demo/**, /api
浏览 6
提问于2022-03-07
得票数 1
1
回答
Spring
Cloud
Gateway
和DiscoveryClient路由
我阅读了以下有关为DiscoveryClient路由
配置
谓词和
过滤器
的文档: Configuring Predicates and Filters For DiscoveryClient Routes以下是我的Netflix Zuul
配置
中的一段代码: zuul: account-service: /accounts/** 下面是
Spring
Cloud
Gateway
配置
中的一段代码,我正在尝试
配置
一个等价的路由: <e
浏览 28
提问于2019-03-13
得票数 7
1
回答
是否可以在
spring
网关的application.properties
配置
中注册路由
过滤器
?
我在
spring
网关项目中定义了一个自定义
过滤器
,现在我发现必须在代码中注册自定义
过滤器
,如下所示:public class GatewayConfig { # dolphin music
spring
.cloud.
gatew
浏览 2
修改于2021-09-19
得票数 0
回答已采纳
1
回答
用于火灾和遗忘模型的弹簧云网关过滤厂
我正在探索
Spring
过滤器
工厂,它可以接受请求并将成功的http状态返回给调用者。然后,根据
过滤器
工厂的
配置
将其转发到目的地。caller --->
Spring
Cloud
Gateway
Spring
Cloud
Gateway
---> Destination注意:我们之所以想中断
Spring
的通信,是因为目标服务器的响应时间
浏览 1
提问于2020-04-19
得票数 1
2
回答
Spring
网关全球
过滤器
不工作
我不会从全局
过滤器
(或我的任何
过滤器
)获得输出。我可以验证每个
过滤器
的bean是在运行时创建的,但我不知道为什么它们不被执行。依赖关系:
spring
-cloud-starter-
gateway
2.2.4 } public int getOrder() {
浏览 6
提问于2022-03-04
得票数 0
回答已采纳
3
回答
如何在
Spring
Cloud
Gateway
中添加特定于路由的自定义
过滤器
所以我是
spring
cloud
gateway
的新手,并且刚刚开始使用它。我浏览了文档,偶然发现了如何创建自定义
过滤器
。https://cloud.
spring
.io/
spring
-cloud-
gateway
/reference/html/#developer-guide @提供的java路由api来
配置
我的路由,所以这是我的路由代码-
浏览 34
提问于2019-11-04
得票数 3
1
回答
设置通过env变量过滤属性
我创建了两个
过滤器
,比方说CustomFilter1和CustomFilter2,它们的
配置
设置为 cloud: default-filters我发现的一种方法是使用
spring
.cloud.
gateway
.default-filters[0].args[key1] = "someOtherValue",但这种方式需要知道在application.yml中定义的
过滤器
的顺序。而且,它看起来像使
浏览 3
修改于2019-10-29
得票数 0
回答已采纳
1
回答
在
Spring
Cloud
Gateway
预过滤中获取SecurityContextHolder
我在一个
Spring
Boot项目(2.2.6版)中使用了
Spring
Cloud
Gateway
和
Spring
Security。我有一个自定义的预
过滤器
,它需要在将请求转发到下游服务之前向请求添加标头。预
过滤器
需要读取
Spring
Security的Authentication对象来获取权限,然后才能添加头部(它需要根据权限进行一些查找)。由于
Spring
Cloud
Gateway
是响应式的,所以我不能使用静态SecurityC
浏览 6
提问于2020-05-10
得票数 1
2
回答
Spring
Cloud
Gateway
-找不到名为[Filter_Name]的GatewayFilterFactory
我有一个
spring
云网关应用程序。我正在尝试设置网关筛选器。'org.springframework.cloud:
spring
-cloud-starter-
gateway
' port: 8081 cloud: routes: - i
浏览 167
提问于2020-10-09
得票数 2
1
回答
如何在Java
配置
中添加自定义
spring
云网关
过滤器
?
我已经在
Spring
Cloud
Gateway
中创建了一个自定义
过滤器
,通过使用"LoggingGlobalPreFilter“对类进行扩展 我有以下几条路线。8222")) .route(r -> r.path("/seconf/**").uri("http://localhost:8333")).build(); 不确定如何在那里添加自定义
过滤器
互联网上的所有文章都在讨论在.yml文件中
配
浏览 6
提问于2020-09-19
得票数 0
3
回答
Spring
云网关:如何创建
过滤器
我是
spring
cloud
gateway
的新手。addRequestHeader("X-SpringOne", "Awesome") .build();在看
spring
cloud
gateway
之前,我也看过
Spring
Netflix Zuul。据我所知,在Netflix Zuul中,您可以通过创建一个扩展
浏览 0
修改于2018-01-30
得票数 3
1
回答
Spring
集成与
Spring
:@Controller与带有服务激活器的入站网关
我想找到最好的方法来管理入站请求,使用、
Spring
、和
Spring
。<!-- INBOUND
GATEWAY
-->它的工作
原理
是:正确执行"
浏览 2
提问于2016-07-28
得票数 1
回答已采纳
1
回答
"DedupeResponseHeader“不与Greenwich.SR3合作
DedupeResponseHeader在
Spring
Greenwich.SR3,中不适合我,我在application.yml中添加了CORS
配置
,下游应用程序也在发送响应头中的访问控制-允许-原产地下面是CORS和DedupeResponseHeader的
配置
cloud: default-filters: - DedupeResponseHeaderallowedOrigins: "http://lo
浏览 1
提问于2020-09-15
得票数 2
2
回答
Spring
Cloud
Gateway
/
gateway
/refresh端点不刷新路由
Spring
Cloud
Gateway
有/
gateway
/refresh端点来更新路由。当我们
配置
执行器并运行上面的端点时,它返回200OK,但是路由
配置
不是从
Spring
Cloud Config重新加载的。
配置
如下: endpoint: enabled: true web: exposure:include: <em
浏览 13
提问于2020-02-07
得票数 0
1
回答
如何从操作系统环境变量中获取
spring
config数组值?
我已经开发了
spring
cloud
gateway
,我想通过os环境变量来管理
spring
cloud
gateway
配置
值,但是
spring
cloud
gateway
配置
值包含数组值,我不确定如何像数组示例那样导出os环境变量
spring
:
gateway
: corsConfigurations: '[
浏览 46
提问于2021-11-18
得票数 0
回答已采纳
1
回答
清理
Spring
Cloud
Gateway
中的请求URI
我想在使用
Spring
Cloud
Gateway
时清理部分uri。 例如:http://localhost:8080//login。在本例中,我希望在
Spring
Gateway
尝试为该请求找到合适的路由之前,就删除双斜杠和单斜杠。 使用全局
过滤器
是正确的方法吗?或者有没有其他的钩子可以用来拦截请求并修改uri?
浏览 29
提问于2019-09-12
得票数 0
1
回答
如何将netflix zuul 1迁移到zuul 2或
spring
云网关
我们的服务目前使用的是
spring
cloud netflix zuul作为我们的门户。现在我们必须支持websocket,所以我们需要将zuul 1迁移到zuul 2或
spring
cloud
gateway
。我知道
spring
cloud团队不再支持zuul,因为他们有自己的
spring
cloud网关。我简单地看了一下zuul 2.0,我知道我们应该首先改变
过滤器
的东西 再也没有@EnableZuulProxy了。(application.yml中的路由
配置
如何?
浏览 54
提问于2020-04-07
得票数 6
回答已采纳
1
回答
带有弹簧云网关的双CORS报头
因此,我希望完全禁用网关上的CORS
过滤器
(理想情况下是全局的,但是应用于每个路由的filter
配置
也是可以接受的)<project xmlns="http://maven.apache.org<dependency> <artifactId>
spring
-cloud-starte
浏览 16
修改于2022-11-17
得票数 0
回答已采纳
1
回答
如何创建
Spring
Cloud网关筛选器,添加客户端凭证访问令牌?
我从
Spring
Boot 1.5.20迁移到
Spring
Boot 2.1.4。我重写了使用Zuul和
Spring
安全oauth到
Spring
云网关和
spring
- security -oauth2-client的应用程序。我尝试创建
spring
cloud
gateway
filter来添加JWT承载token。我在写
过滤器
时遇到了问题。这是workflow 我尝试过使用@RegisteredOAuth2AuthorizedClient,但它不适用
浏览 22
提问于2019-05-07
得票数 2
1
回答
中的
过滤器
有推荐的订购范围吗?
我想知道中是否存在网关
过滤器
(全局或非全局)的推荐订单范围,因为在网关链中存在订单小于1和大于9999的
Spring
网关
过滤器
。@10faebc9}, order = 2147483647]"@Component public int getOrder() {
浏览 7
提问于2021-07-05
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券