Skip to content

@RequestHeader name/value does not accept placeholders [SPR-13952] #18525

Closed
@spring-projects-issues

Description

@spring-projects-issues

Bjorn Harvold opened SPR-13952 and commented

I would like to be able to control the name of my auth token per environment. Ergo, I would like to be able to do something like this:

@RequestHeader(value = "${env.auth.token}", required = true)

Currently, this only works with a constant string.


Affects: 4.2.4

Issue Links:

Referenced from: commits e0d7c6b

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions