Payload is not deserialized in SQS and SqsMessageConversionContext doesn't know a type of a POJO #760
-
Hey guys, We have different SQS events on our project: each microservice has own format. I would like to have an In version 2.x it was working fine (it was enough to create a custom MessageConverter which returned a string Could you please advice how could I implement the task described above? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hey @heroInCommunity, thanks for bringing this up. I never had thought of using What you described worked for me - here's what I've done: Mapped the full classstatic class FullPayload {
public String sendTime;
public String messageBody;
public String environment;
public String build;
public String branch;
public String correlationId;
} Created a custom
|
Beta Was this translation helpful? Give feedback.
-
Ok, finally I made it working by using combination
and
it was important to add my argument resolver to the beginning of list of resolvers:
I hope this could be useful for someone |
Beta Was this translation helpful? Give feedback.
Ok, finally I made it working by using combination