Skip to content

Resolve @RedisListener consumes placeholders#3395

Open
DragonFSKY wants to merge 1 commit into
spring-projects:mainfrom
DragonFSKY:gh-redislistener-consumes-placeholder
Open

Resolve @RedisListener consumes placeholders#3395
DragonFSKY wants to merge 1 commit into
spring-projects:mainfrom
DragonFSKY:gh-redislistener-consumes-placeholder

Conversation

@DragonFSKY

Copy link
Copy Markdown

Related to #3393.

This resolves embedded property placeholders in the @RedisListener consumes attribute before setting the listener endpoint content type. Without this, values such as ${app.redis.content-type} are propagated literally as the synthetic MessageHeaders.CONTENT_TYPE, preventing configured content negotiation from being applied.

Tests: ./mvnw -Dtest=RedisListenerAnnotationBeanPostProcessorIntegrationTests,RedisListenerEndpointConversionUnitTests test

  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

Related tickets spring-projects#3393
Signed-off-by: Dongliang Xie <dragonfsky@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants