-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Spring Framework 7.1 Release Notes
This is a preview page for Spring Framework 7.1.0, scheduled for November 2026.
This new generation raises its minimum requirements for the following:
We noticed that the JAXB message converter can consume a lot of CPU resources at runtime, even if XML isn't being used by the application. The "jakarta.xml.bind:jakarta.xml.bind-api" dependency is very common in Servlet applications and is often auto-detected by HttpMessageConverters as a valid choice.
As of Framework 7.1, HttpMessageConverters will not auto-detect JAXB converters for server applications. RestTemplate and RestClient will still detect it, because the CPU overhead there is less important.
You can bring back this converter in your server application with the following configuration:
@Configuration(proxyBeanMethods = false)
class JaxbConverterConfiguration implements WebMvcConfigurer {
@Override
public void configureMessageConverters(HttpMessageConverters.ServerBuilder builder) {
builder.withXmlConverter(new Jaxb2RootElementHttpMessageConverter());
}
}