Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Ability to customize Jaxb Marshaller in Jaxb2XmlEncoder [SPR-17388] #21921
I would like to have ability to customize Jaxb Marshller inside org.springframework.http.codec.xml.Jaxb2XmlEncoder.
My goal is to setup Marshaller to output CDATA element, as described here https://coderleaf.wordpress.com/2016/11/14/handling-cdata-with-jaxb/ . Currently there is no way how to setup custom properties into Marshaller.
Current workaround is to create custom XmlEncoder as copy paste of org.springframework.http.codec.xml.Jaxb2XmlEncoder and with customization of Marshaller