java - Disable replacement of XML eXternal entities in Spring Jaxb2RootElementHttpMessageConverter -


i have annotation based spring web application controller maps xml annotated plain old java object. exemplary code follows:

@controller @requestmapping("/") public class endpoint {      @requestmapping     public void send(...) {         ...     }      ... 

the mapping automatically done via jaxb2rootelementhttpmessageconverter , @ moment possible reference , replace content in received xml.

my question is, possible -- example via beans.xml -- configure jaxb2rootelementhttpmessageconverter such replacement of entities prevented?

the converter automatically created spring.

if want overwrite bean created spring define own bean of same type. additionally can mark @primary. haven't tried jaxb2rootelementhttpmessageconverter, worked objectmapper described here :

http://docs.spring.io/spring-boot/docs/current/reference/html/howto-spring-mvc.html#howto-customize-the-jackson-objectmapper


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -