mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix an AllEncompassingFormHttpMessageConverter regression
Restore previous behavior to configure Jaxb2RootElementHttpMessageConverter when JAXB but not Jackson are present. Closes gh-25291
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ public class AllEncompassingFormHttpMessageConverter extends FormHttpMessageConv
|
||||
// Ignore when no TransformerFactory implementation is available
|
||||
}
|
||||
|
||||
if (jaxb2Present) {
|
||||
if (jaxb2Present && !jackson2XmlPresent) {
|
||||
addPartConverter(new Jaxb2RootElementHttpMessageConverter());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user