org.springframework:spring-webmvc breaking changes
Updated December 4, 2026
On this page
Latest version 7.1.0. Source repository
Packages on Maven Central run on Java. Java end of life dates.
org.springframework:spring-webmvc 7.0.0 breaking changes
- Removed
Undertow-specific WebSocket and WebFlux low-level HTTP classes were dropped because Undertow does not support Servlet 6.1. github.com - Removed
OkHttp3 support removed in org.springframework:spring-webmvc 7.0.0 github.com - Removed
Theme support removed in org.springframework:spring-webmvc 7.0.0 github.com - Removed
HttpComponentsClientHttpRequestFactory.setConnectTimeout
Removed setConnectTimeout methods on HttpComponentsClientHttpRequestFactory in org.springframework:spring-webmvc 7.0.0 github.com - Removed
javax.annotation
Migrate to the equivalent annotations in the jakarta.annotation and jakarta.inject packages. github.com - Removed
ListenableFuture
Use CompletableFuture instead. github.com - Removed
matchOptionalTrailingSeparator
Removed matchOptionalTrailingSeparator from PathPatternParser in org.springframework:spring-webmvc 7.0.0 github.com - Removed
org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer.favorPathExtension
Removed favorPathExtension content negotiation option in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer.ignoreUnknownPathExtensions
Removed ignoreUnknownPathExtensions content negotiation option in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer.useJaf
ContentNegotiationConfigurer.useJaf was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.PathMatchConfigurer.isUseRegisteredSuffixPatternMatch
PathMatchConfigurer.isUseRegisteredSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.PathMatchConfigurer.isUseSuffixPatternMatch
PathMatchConfigurer.isUseSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.PathMatchConfigurer.isUseTrailingSlashMatch
PathMatchConfigurer.isUseTrailingSlashMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.PathMatchConfigurer.setUseRegisteredSuffixPatternMatch
PathMatchConfigurer.setUseRegisteredSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.PathMatchConfigurer.setUseSuffixPatternMatch
PathMatchConfigurer.setUseSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.PathMatchConfigurer.setUseTrailingSlashMatch
PathMatchConfigurer.setUseTrailingSlashMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.themeResolver
WebMvcConfigurationSupport.themeResolver was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.DispatcherServlet.getThemeSource
DispatcherServlet.getThemeSource was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.DispatcherServlet.setThrowExceptionIfNoHandlerFound
DispatcherServlet.setThrowExceptionIfNoHandlerFound was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER_ATTRIBUTE
org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER_ATTRIBUTE was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER_BEAN_NAME
org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER_BEAN_NAME was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE_ATTRIBUTE
org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE_ATTRIBUTE was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.function.ServerRequest.methodName
ServerRequest.methodName was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.function.ServerRequest.pathContainer
ServerRequest.pathContainer was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.function.ServerResponse.rawStatusCode
ServerResponse.rawStatusCode was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getMappingPathPatterns
AbstractHandlerMethodMapping.getMappingPathPatterns was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.setUseTrailingSlashMatch
AbstractUrlHandlerMapping.setUseTrailingSlashMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.useTrailingSlashMatch
AbstractUrlHandlerMapping.useTrailingSlashMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.handler.MappedInterceptor.getPathPatterns
MappedInterceptor.getPathPatterns was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.HandlerAdapter.getLastModified
HandlerAdapter.getLastModified was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.i18n.CookieLocaleResolver.determineDefaultLocale
CookieLocaleResolver.determineDefaultLocale was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.i18n.CookieLocaleResolver.determineDefaultTimeZone
CookieLocaleResolver.determineDefaultTimeZone was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.i18n.CookieLocaleResolver.setCookieName
CookieLocaleResolver.setCookieName was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.i18n.SessionLocaleResolver.determineDefaultLocale
SessionLocaleResolver.determineDefaultLocale was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.i18n.SessionLocaleResolver.determineDefaultTimeZone
SessionLocaleResolver.determineDefaultTimeZone was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.LastModified
org.springframework.web.servlet.mvc.LastModified was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.getLastModified
AbstractHandlerMethodAdapter.getLastModified was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.getLastModifiedInternal
AbstractHandlerMethodAdapter.getLastModifiedInternal was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.getLastModifiedInternal
RequestMappingHandlerAdapter.getLastModifiedInternal was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.setIgnoreDefaultModelOnRedirect
RequestMappingHandlerAdapter.setIgnoreDefaultModelOnRedirect was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.getFileExtensions
RequestMappingHandlerMapping.getFileExtensions was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.setUseRegisteredSuffixPatternMatch
RequestMappingHandlerMapping.setUseRegisteredSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.setUseSuffixPatternMatch
RequestMappingHandlerMapping.setUseSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.setUseTrailingSlashMatch
RequestMappingHandlerMapping.setUseTrailingSlashMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.useRegisteredSuffixPatternMatch
RequestMappingHandlerMapping.useRegisteredSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.useSuffixPatternMatch
RequestMappingHandlerMapping.useSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.useTrailingSlashMatch
RequestMappingHandlerMapping.useTrailingSlashMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.getFileExtensions
org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.getFileExtensions was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setRegisteredSuffixPatternMatch
org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setRegisteredSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setSuffixPatternMatch
org.springframework.web.servlet.mvc.method.RequestMappingInfo.BuilderConfiguration.setSuffixPatternMatch was removed in org.springframework:spring-webmvc 7.0.0 central.sonatype.com
And 76 more in this version. Sign up to see every change
org.springframework:spring-webmvc 7.0.0-RC3 breaking changes
- Removed
BeanRegistrarDsl
BeanRegistrarDsl no longer supports callable references. Use another supported form to register beans. github.com - Removed
RestTestClient
RestTestClient no longer depends on Hamcrest, so code relying on that transitive dependency must add it directly. github.com - Behavior changed
SpringExtension
SpringExtension uses a test-method scoped ExtensionContext instead of the previous scope. Tests relying on the old context scope may behave differently. github.com
org.springframework:spring-webmvc 7.0.0-RC1 breaking changes
- Behavior changed
ConfigurationBeanNameGenerator
ConfigurationBeanNameGenerator is now invoked even when a @Bean name is provided. github.com
org.springframework:spring-webmvc 7.0.0-M9 breaking changes
- Removed
HttpServiceClient
HttpServiceClient annotation support is removed. github.com - Behavior changed
ContextCache
ContextCache now closes an evicted context before loading a new context. github.com - Behavior changed
Jackson 3 constructors
Jackson 3 constructors now accept only JsonMapper instances for JSON. github.com - Behavior changed
RetryException
RetryException#getCause should not be nullable now. github.com - Default changed
JpaTransactionManager.nestedTransactionAllowed
The default for nestedTransactionAllowed on JpaTransactionManager is aligned, changing existing behavior. github.com
org.springframework:spring-webmvc 7.0.0-M8 breaking changes
- Renamed
ApiVersionConfigurer.useRequestParam
Use useQueryParam in place of useRequestParam on ApiVersionConfigurer. github.com - Behavior changed
ApiVersionConfigurer
ApiVersionConfigurer.useRequestParam is replaced by useQueryParam; update callers. github.com - Behavior changed
PathApiVersionResolver
PathApiVersionResolver should not be nullable, so passing null is no longer accepted. github.com
org.springframework:spring-webmvc 7.0.0-M7 breaking changes
- Removed
RetryPolicy
Built-in RetryPolicy implementations are now final and cannot be subclassed. github.com - Renamed
org.springframework.orm.hibernate5
The orm.hibernate5 package is migrated to orm.jpa.hibernate for Hibernate ORM 7.0; update imports. github.com - Behavior changed
ApplicationContextEvent
Restart now publishes ContextRestartedEvent, a subtype of ContextStartedEvent, which affects existing started-event listeners. github.com - Behavior changed
Contract
The @Contract annotation requires explicit constraints rather than defaults. github.com - Behavior changed
HttpMessageConverters
The HttpMessageConverters builder is aligned with WebFlux codec variants, changing default converter setup. github.com - Behavior changed
InstanceFilter
InstanceFilter and ExceptionTypeFilter set matchIfEmpty to true by default, changing matching for empty filters. github.com - Behavior changed
RetryPolicy
RetryPolicy now directly incorporates BackOff, changing how retry backoff is configured. github.com - Default changed
ExceptionTypeFilter
ExceptionTypeFilter sets matchIfEmpty to true by default. github.com
Older versions
14 older versions, each with its first changes. Sign up to see every change
Show 14 older versions
org.springframework:spring-webmvc 7.0.0-M6 breaking changes
- Removed
MockEnvironment.setProperty
The (String, String) variant of setProperty() is removed from MockEnvironment. github.com - Removed
MockEnvironment.withProperty
The (String, String) variant of withProperty() is removed from MockEnvironment. github.com
org.springframework:spring-webmvc 7.0.0-M4 breaking changes
- Behavior changed
Preflight requests are no longer rejected when no CORS configuration is provided. github.com - Configuration changed
The framework now requires Servlet 6.1 and WebSocket 2.2 as baselines. github.com
org.springframework:spring-webmvc 7.0.0-M3 breaking changes
- Removed
Convention-based annotation attribute overrides are no longer supported. github.com - Removed
BeanRegistrar
Aware interfaces are no longer supported in BeanRegistrar. github.com
And 1 more in this version.
org.springframework:spring-webmvc 7.0.0-M2 breaking changes
- Removed
Netty 5 is no longer supported. github.com - Behavior changed
@Component
An explicitly aliased value attribute is no longer used as the @Component bean name. github.com
And 3 more in this version.
org.springframework:spring-webmvc 7.0.0-M1 breaking changes
- Removed
The spring-jcl module is replaced by regular Apache Commons Logging 1.3. github.com - Removed
Path mapping options that were marked as deprecated for removal are removed. github.com
And 1 more in this version.
org.springframework:spring-webmvc 6.0.0 breaking changes
- Removed
org.springframework.web.servlet.config.annotation.CorsRegistration.allowPrivateNetwork
CorsRegistration.allowPrivateNetwork was removed in org.springframework:spring-webmvc 6.0.0 central.sonatype.com - Removed
org.springframework.web.servlet.config.annotation.ViewResolverRegistry.tiles
ViewResolverRegistry.tiles was removed in org.springframework:spring-webmvc 6.0.0 central.sonatype.com
And 377 more in this version.
org.springframework:spring-webmvc 6.0.0-RC2 breaking changes
- Behavior changed
SimpleEvaluationContext
SimpleEvaluationContext now disables array allocation, which can change expression evaluation results. github.com - Default changed
DateTimeFormatterRegistrar
DateTimeFormatterRegistrar now falls back to ISO parsing by default, so date parsing results can differ from before. github.com
org.springframework:spring-webmvc 6.0.0-RC1 breaking changes
- Renamed
ApplicationContextAotInitializer
Use the new AotApplicationContextInitializer interface instead of ApplicationContextAotInitializer. github.com - Behavior changed
Default test execution listeners are now enabled in JUnit 4 and TestNG base test classes, which can change test behavior. github.com
And 5 more in this version.
org.springframework:spring-webmvc 6.0.0-M6 breaking changes
- Removed
Setting the default CacheAwareContextLoaderDelegate via a system property is no longer supported. github.com - Removed
GenericPropertiesContextLoader
GenericPropertiesContextLoader has been removed from the TestContext framework. github.com
And 4 more in this version.
org.springframework:spring-webmvc 6.0.0-M5 breaking changes
- Behavior changed
The message of a nested exception no longer includes messages from its causal chain. github.com - Behavior changed
Cookie and session locale resolvers now resolve the default locale and timezone differently. github.com
And 2 more in this version.
org.springframework:spring-webmvc 6.0.0-M4 breaking changes
- Removed
org.springframework.core.NestedIOException
The obsolete NestedIOException class has been removed from org.springframework.core. github.com - Removed
TYPE_HIERARCHY_AND_ENCLOSING_CLASSES
The TYPE_HIERARCHY_AND_ENCLOSING_CLASSES search strategy for MergedAnnotations has been removed. github.com
And 3 more in this version.
org.springframework:spring-webmvc 6.0.0-M3 breaking changes
- Removed
SocketUtils
The deprecated SocketUtils class has been removed. github.com - Behavior changed
@Bean
Overloaded @Bean methods are now rejected by default, so such configurations must be changed. github.com
org.springframework:spring-webmvc 6.0.0-M2 breaking changes
- Behavior changed
WebSocketConfigurationSupport
Applications relying on the TaskScheduler bean from WebSocketConfigurationSupport must define their own. github.com
org.springframework:spring-webmvc 6.0.0-M1 breaking changes
- Removed
Support for the deprecated Java SecurityManager has been removed. github.com - Renamed
Annotations and interfaces move to the jakarta.* namespace, so code using javax.* imports must migrate. github.com
And 5 more in this version.
Related packages
- org.springframework:spring-aop
- org.springframework:spring-aspects
- org.springframework:spring-beans
- org.springframework:spring-context
- org.springframework:spring-context-support
- org.springframework:spring-core
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.