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 dd5517259c..7ff96ef2f4 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.