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 :
Comments
Post a Comment