Enable sending String payloads with JSON content type in SqsTemplate #1144
Labels
component: sqs
SQS integration related issue
status: ideal-for-contribution
We agree it's nice to have but it is not team priority
type: enhancement
Smaller enhancement in existing integration
Currently due to Spring Messaging internals if we send a
String
message containing a JSON without specifying aContent-Type
it'll default totext/plain
in theStringMessageConverter
.If we set
.header(MessageHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
, it will be mapped byMappingJackson2MessageConverter
which will double serialize the payload, which won't be readable.We should look into a way of enabling users to send a String json with
APPLICATION_JSON
content type so it can be properly deserialized by the consumer.The text was updated successfully, but these errors were encountered: