contentType SNS attribute required to deserialize JSON with @NotificationMessage: bug or not? #520
-
Using Spring Cloud AWS 2.4.2, publishing a JSON message to an SNS topic leads to this @SqsListener(value = "myQueue")
public void process(@NotificationMessage MyJsonPayload payload) {
// ...
} After some source diving I realised the SNS message must specify an attribute Is this intentional (undocumented?) behaviour or a bug? I worked around the problem by declaring my own @Bean
MappingJackson2MessageConverter converter() {
return new MappingJackson2MessageConverter(new MimeType[]{});
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@hertzsprung which version of Spring Cloud AWS are you using? Edit: Enforcing content type match is already fixed in 3.0 M2 (#213). You can follow the discussion there for more details. |
Beta Was this translation helpful? Give feedback.
@hertzsprung which version of Spring Cloud AWS are you using?
Edit:
Enforcing content type match is already fixed in 3.0 M2 (#213). You can follow the discussion there for more details.