-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support JAXBElement in Jaxb2RootElementHttpMessageConverter #33233
Conversation
@deblockt thanks for the PR but it looks a little strange to me. Shouldn't the conversion happen via the content-type rather than via supporting such a type? Where would you be using this exactly? |
Hi @snicoll , This PR is the equivalent of this commit on In my project, I try to serialize XML object using
Where The |
Thanks for the additional details.
Yeah I didn't mean that |
Thanks again @deblockt! |
On the current Spring version, usage of
Jaxb2RootElementHttpMessageConverter
inRestClient
messageConverters
don't allow to serializeJAXBElement
.This PR add this feature.