Skip to content

Ability to customize Jaxb Marshaller in Jaxb2XmlEncoder [SPR-17388] #21921

@spring-projects-issues

Description

@spring-projects-issues

Jakub Štiller opened SPR-17388 and commented

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


Affects: 5.1.1

Referenced from: commits 46a5fb7, de453ac

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions