Add support for placeholders to Feign spring-mvc annotations of headers field
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先追踪 Feign spring-mvc 注解当前如何解析 value 字段的占位符,然后将这一路径与 headers 字段的处理进行比较。根据 issue 示例确认预期的语法,并验证 header 占位符能够从 application properties 加载,同时不会破坏现有的 header 行为。
由索引模型根据 Issue 内容生成。
描述
Hi, I saw there is an issue spring-cloud/spring-cloud-netflix#894 which add support for placeholders of value field.
But other field such as "headers" still not support placeholder.
Since sometimes we need set Authentication header, it is awesome if the value could be loaded from properties file.
@FeignClient("foo")
public interface FooClient{
@RequestMapping(value = "${my.special.placeholder}",
method = RequestMethod.GET,
headers = "${my.token}"
ResponseEntity getSomeData(s);
}
- 主要语言
- Java
- 星标
- 1.3k
- 派生
- 834
- 平均合并
- 3 天 6 小时
- 30 天内合并 PR
- 14
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
spring-cloud/spring-cloud-openfeign 的其他 Issue
-
@RequestHeader overrides @PathVariable with the same name可能重新可做 @rajeshvasa 于 11 天前认领,目前没有进行中的 PR。 未关闭waiting-for-triage
难度 3/5 1-2 天 新手友好度 64/100
spring-cloud/spring-cloud-openfeign#1465 · 2 条评论 ·
维护者通常 1 天内回复
-
question
难度 4/5 3-5 天 新手友好度 35/100
spring-cloud/spring-cloud-openfeign#1392 · 1 条评论 ·
维护者通常 1 天内回复
-
FeignClientsConfiguration$MicrometerConfiguration.class cannot be opened because it does not exist未关闭feedback-provided
难度 4/5 3-5 天 新手友好度 35/100
spring-cloud/spring-cloud-openfeign#1379 · 5 条评论 ·
维护者通常 1 天内回复
-
waiting-for-triage
难度 3/5 1-2 天 新手友好度 45/100
spring-cloud/spring-cloud-openfeign#1340 · 1 条评论 ·
维护者通常 1 天内回复
-
dependencies
难度 3/5 1-2 天 新手友好度 55/100
spring-cloud/spring-cloud-openfeign#1334 · 11 条评论 · 4 个 reaction ·
维护者通常 1 天内回复
查看 spring-cloud/spring-cloud-openfeign 的全部 Issue
相似的 Issue
-
Add contributing guide可能已有人在做 @WadekarPrashant 今天认领。 未关闭good first issue
难度 1/5 1-3 小时 新手友好度 88/100
jenkinsci/gitea-checks-plugin#382 · 1 条评论 ·
-
enhancement infra
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
5.0.x backport bug
难度 1/5 1 小时以内 新手友好度 68/100
spring-cloud/spring-cloud-function#1569 ·
维护者通常 1 天内回复
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parent可能已有人在做 @olegz 今天认领。 未关闭task
难度 2/5 1-3 小时 新手友好度 74/100
spring-cloud/spring-cloud-stream#3355 ·
维护者通常 1 天内回复
-
bug untriaged
难度 2/5 1-3 小时 新手友好度 72/100
opensearch-project/opensearch-java#2342 ·
维护者通常 1 天内回复