-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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 Jackson based XML serialization #1580
Comments
I have began to work on this issue by adding a new The issue here is that the How do you think I should handle that ? Should I implement an additional includeSubclasses boolean attribute on |
Thinking aloud: rather than adding the Taking a step back, how do you expect an app to make use of both an |
I concur with Andy here. I also find it weird that the app can work with both an |
I agree too, we may find a better solution. In Spring Framework, we don't deal with If we can do some breaking change in Spring Boot 1.2, my proposal would be de register a Any thought ? |
We may perhaps be able to avoid breaking changes by adding |
I think we may be over-thinking this. Why not auto-configure a single bean: an Going a step further, we could perhaps use a |
I don't think we should limit auto-configuration to a single bean since In Spring Framework 4.1, About the |
I don't think we should stop exposing the As an alternative, how about this:
|
Yes, I agree that we should keep About the alternative, from a user perpective I would expect the following behavior:
Do you agree with 2) ? A possible implementation could be:
Does it make sense from you point of view ? |
I don't entirely agree with 2. In 1.1, I can't see any harm in creating a |
Indeed, if the I will send a PR with this implementation if you agree. |
Sounds good to me. Thanks! |
Thanks for your feedback! |
Hi @wilkinsona, could you have a look to my PR #1661 and send me your feedbacks ? |
Spring 4.1 now supports Jackson for XML serialization based on Jackson XML extension.
It is automatically enabled when using <mvc:annotation-driven /> or @EnableWebMvc if Jackson XML extension is detected on the classpath.
Like what it is done for ObjectMapper, Spring Boot could provide easy MappingJackson2XmlHttpMessageConverter customization by creating a conditional XmlMapper bean in JacksonAutoConfiguration.
I will provide a PR for that.
The text was updated successfully, but these errors were encountered: