Skip to content

Commit 2f0970b

Browse files
committed
Fix an AllEncompassingFormHttpMessageConverter regression
Restore previous behavior to configure Jaxb2RootElementHttpMessageConverter when JAXB but not Jackson are present. Closes gh-25291
1 parent 63dff52 commit 2f0970b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-web/src/main/java/org/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public AllEncompassingFormHttpMessageConverter() {
7878
// Ignore when no TransformerFactory implementation is available
7979
}
8080

81-
if (jaxb2Present) {
81+
if (jaxb2Present && !jackson2XmlPresent) {
8282
addPartConverter(new Jaxb2RootElementHttpMessageConverter());
8383
}
8484
}

0 commit comments

Comments
 (0)