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?
When using the new @RedisListener annotation, the topic attribute does not resolve Spring property placeholders.
For example:
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?