Substitue for @NotificationMessage with @SqsListener in 3.0 #815
-
Hey, first of all, kudos to you all for the work you put in to prepare Spring Cloud AWS for Spring Boot 3! I have a question regarding the best replacement for @NotificationMessage that was used with @SqsListener in previous versions:
That allowed us to work with just a message payload part of the
Since we're not really interested in all this data in our listeners I was wondering what's the best way to get just the message payload? Based on this discussion I was able to make it work with something like this, but I wonder if this is now the best way to make it work.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Simply create a pojo with 1 field Message as parameter
|
Beta Was this translation helpful? Give feedback.
Simply create a pojo with 1 field Message as parameter