diff --git a/spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java b/spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java index dd5517259c366fb04b834e81a298d480be379baf..7ff96ef2f431674e7f57dbf1502900e2296070d6 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java +++ b/spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java @@ -91,6 +91,10 @@ public class Jaxb2XmlDecoder extends AbstractDecoder { super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); } + public Jaxb2XmlDecoder(MimeType... supportedMimeTypes) { + super(supportedMimeTypes); + } + /** * Configure a processor function to customize Unmarshaller instances.