Skip to content

@RedisListener does not resolve property placeholders in all attributes #3393

Description

@yagyesha

When using the new @RedisListener annotation, the topic attribute does not resolve Spring property placeholders.

For example:

@RedisListener(
id = "myListener",
topic = "${app.my-channel}",
consumes = "application/json"
)
public void handle(String message) {
// ...
}

with:

app.my-channel=my-channel

results in the listener subscribing to the literal Redis channel:

${app.my-channel}

instead of:

my-channel

Is this an expected behavior? or is this a bug/missing feature?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions