org.springframework:spring-core 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-core 7.0.0 breaking changes
- Removed
Undertow-specific WebSocket and low-level WebFlux HTTP classes are dropped until Undertow supports Servlet 6.1. github.com - Removed
favorPathExtension
favorPathExtension and ignoreUnknownPathExtensions have been removed from content negotiation configuration. github.com - Removed
HttpComponentsClientHttpRequestFactory.setConnectTimeout
The HttpComponentsClientHttpRequestFactory#setConnectTimeout methods have been removed. github.com - Removed
Jackson2ObjectMapperBuilder
Use Jackson's JsonMapper.builder() or CBORMapper.builder() instead for Jackson 3.x. github.com - Removed
javax.annotation
Annotations in javax.annotation such as @Resource and @PostConstruct are no longer supported; migrate to jakarta.annotation. github.com - Removed
javax.inject
Annotations in javax.inject such as @Inject are no longer supported; migrate to jakarta.inject. github.com - Removed
matchOptionalTrailingSeparator
The matchOptionalTrailingSeparator option in PathPatternParser has been removed. github.com - Removed
OkHttp3 support
Spring no longer provides OkHttp3 support. github.com - Removed
org.springframework.aot.hint.ResourcePatternHint.toRegex
ResourcePatternHint.toRegex was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.aot.hint.ResourcePatternHints.Builder.excludes
org.springframework.aot.hint.ResourcePatternHints.Builder.excludes was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.aot.hint.ResourcePatternHints.getExcludes
ResourcePatternHints.getExcludes was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar.<init>
FilePatternResourceHintsRegistrar.<init> was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar.registerHints
FilePatternResourceHintsRegistrar.registerHints was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.asm.Opcodes.V27
org.springframework.asm.Opcodes.V27 was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.codec.Netty5BufferDecoder
org.springframework.core.codec.Netty5BufferDecoder was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.codec.Netty5BufferEncoder
org.springframework.core.codec.Netty5BufferEncoder was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.io.buffer.Netty5DataBuffer
org.springframework.core.io.buffer.Netty5DataBuffer was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.io.buffer.Netty5DataBufferFactory
org.springframework.core.io.buffer.Netty5DataBufferFactory was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.serializer.DefaultDeserializer.getClassLoader
DefaultDeserializer.getClassLoader was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.task.AsyncListenableTaskExecutor
org.springframework.core.task.AsyncListenableTaskExecutor was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.task.SimpleAsyncTaskExecutor.submitListenable
SimpleAsyncTaskExecutor.submitListenable was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.core.task.support.TaskExecutorAdapter.submitListenable
TaskExecutorAdapter.submitListenable was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.AnnotationSpec.Builder.members
org.springframework.javapoet.AnnotationSpec.Builder.members was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.FieldSpec.Builder.annotations
org.springframework.javapoet.FieldSpec.Builder.annotations was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.FieldSpec.Builder.modifiers
org.springframework.javapoet.FieldSpec.Builder.modifiers was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.FieldSpec.hasModifier
FieldSpec.hasModifier was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.JavaFile.Builder.staticImports
org.springframework.javapoet.JavaFile.Builder.staticImports was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.JavaFile.fileComment
JavaFile.fileComment was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.JavaFile.skipJavaLangImports
JavaFile.skipJavaLangImports was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.MethodSpec.Builder.annotations
org.springframework.javapoet.MethodSpec.Builder.annotations was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.MethodSpec.Builder.modifiers
org.springframework.javapoet.MethodSpec.Builder.modifiers was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.MethodSpec.Builder.parameters
org.springframework.javapoet.MethodSpec.Builder.parameters was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.MethodSpec.Builder.typeVariables
org.springframework.javapoet.MethodSpec.Builder.typeVariables was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.MethodSpec.hasModifier
MethodSpec.hasModifier was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.ParameterSpec.Builder.annotations
org.springframework.javapoet.ParameterSpec.Builder.annotations was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.ParameterSpec.Builder.modifiers
org.springframework.javapoet.ParameterSpec.Builder.modifiers was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.ParameterSpec.hasModifier
ParameterSpec.hasModifier was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeName.OBJECT
org.springframework.javapoet.TypeName.OBJECT was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.alwaysQualifiedNames
org.springframework.javapoet.TypeSpec.Builder.alwaysQualifiedNames was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.annotations
org.springframework.javapoet.TypeSpec.Builder.annotations was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.enumConstants
org.springframework.javapoet.TypeSpec.Builder.enumConstants was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.fieldSpecs
org.springframework.javapoet.TypeSpec.Builder.fieldSpecs was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.methodSpecs
org.springframework.javapoet.TypeSpec.Builder.methodSpecs was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.modifiers
org.springframework.javapoet.TypeSpec.Builder.modifiers was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.originatingElements
org.springframework.javapoet.TypeSpec.Builder.originatingElements was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.superinterfaces
org.springframework.javapoet.TypeSpec.Builder.superinterfaces was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.typeSpecs
org.springframework.javapoet.TypeSpec.Builder.typeSpecs was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.Builder.typeVariables
org.springframework.javapoet.TypeSpec.Builder.typeVariables was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.javapoet.TypeSpec.hasModifier
TypeSpec.hasModifier was removed in org.springframework:spring-core 7.0.0 central.sonatype.com - Removed
org.springframework.util.concurrent.CompletableToListenableFutureAdapter
org.springframework.util.concurrent.CompletableToListenableFutureAdapter was removed in org.springframework:spring-core 7.0.0 central.sonatype.com
And 102 more in this version. Sign up to see every change
org.springframework:spring-core 7.0.0-RC3 breaking changes
- Removed
BeanRegistrarDsl
BeanRegistrarDsl no longer supports callable references. Use another supported way to register beans. github.com - Removed
RestTestClient
RestTestClient no longer depends on Hamcrest. Code that relies on Hamcrest types through RestTestClient must add Hamcrest itself. github.com - Behavior changed
SpringExtension
SpringExtension now uses a test-method scoped ExtensionContext. Test code that depends on the previous context scope may need adjusting. github.com
org.springframework:spring-core 7.0.0-RC1 breaking changes
- Behavior changed
ConfigurationBeanNameGenerator
The generator is invoked even if @Bean(name=...) is provided, which may change bean naming. github.com
org.springframework:spring-core 7.0.0-M9 breaking changes
- Removed
Undertow
Undertow is no longer supported because it is not Servlet 6.1 compatible. github.com - Behavior changed
ApiVersionConfigurer.setVersionRequired
Calling setVersionRequired and setDefaultVersion together on ApiVersionConfigurer may now raise an error. github.com - Behavior changed
JpaTransactionManager.nestedTransactionAllowed
The default value of nestedTransactionAllowed was aligned, so code relying on the old default may behave differently. github.com - Behavior changed
RetryException.getCause
getCause now declares a non-null return, which may affect null checks. github.com
org.springframework:spring-core 7.0.0-M7 breaking changes
- Removed
org.springframework.orm.hibernate5
Code importing the orm.hibernate5 package must switch to the orm.jpa.hibernate package. github.com - Removed
RetryPolicy.maxDuration
RetryPolicy no longer supports maxDuration or maxElapsedTime limits; code using them must change its retry configuration. github.com - Behavior changed
ExceptionTypeFilter
When no filter criteria are set, ExceptionTypeFilter now matches by default. github.com - Behavior changed
HttpMessageConverters
Default HTTP message converter and codec setup changed; check custom converter configuration. github.com - Behavior changed
InstanceFilter
When no filter criteria are set, InstanceFilter now matches by default. github.com
org.springframework:spring-core 7.0.0-M6 breaking changes
- Removed
MockEnvironment.setProperty
The (String, String) variants of setProperty() are removed from MockEnvironment. github.com - Removed
MockEnvironment.withProperty
The (String, String) variants of withProperty() are removed from MockEnvironment. github.com
Older versions
13 older versions, each with its first changes. Sign up to see every change
Show 13 older versions
org.springframework:spring-core 7.0.0-M3 breaking changes
- Removed
Convention-based annotation attribute overrides are removed. github.com - Removed
BeanRegistrar
Aware interfaces are no longer supported in BeanRegistrar. github.com
And 1 more in this version.
org.springframework:spring-core 7.0.0-M2 breaking changes
- Removed
Netty 5 support is removed. github.com
org.springframework:spring-core 7.0.0-M1 breaking changes
- Removed
Path mapping options that were marked deprecated for removal are removed; stop using them. github.com - Removed
spring-jcl
The spring-jcl module is replaced by regular Apache Commons Logging 1.3. github.com
org.springframework:spring-core 6.0.0 breaking changes
- Removed
org.springframework.asm.Opcodes.V21
org.springframework.asm.Opcodes.V21 was removed in org.springframework:spring-core 6.0.0 central.sonatype.com - Removed
org.springframework.cglib.core.MethodWrapper.MethodWrapperKey
org.springframework.cglib.core.MethodWrapper.MethodWrapperKey was removed in org.springframework:spring-core 6.0.0 central.sonatype.com
And 54 more in this version.
org.springframework:spring-core 6.0.0-RC4 breaking changes
- Behavior changed
The build now uses Servlet 6.0, while runtime compatibility with Servlet 5.0 is kept, so applications on Servlet 5.0 should still work. github.com
org.springframework:spring-core 6.0.0-RC2 breaking changes
- Behavior changed
DateTimeFormatterRegistrar
DateTimeFormatterRegistrar now falls back to ISO parsing by default, so date strings may be parsed differently than before. github.com - Behavior changed
SimpleEvaluationContext
SimpleEvaluationContext no longer allocates arrays, which may change expression evaluation results that relied on it. github.com
And 2 more in this version.
org.springframework:spring-core 6.0.0-RC1 breaking changes
- Removed
TestCompiler
TestCompiler was moved to a dedicated package, so imports from its previous location no longer work. github.com - Renamed
ApplicationContextAotInitializer
Code that implements ApplicationContextAotInitializer must switch to the new AotApplicationContextInitializer interface. github.com
And 3 more in this version.
org.springframework:spring-core 6.0.0-M6 breaking changes
- Removed
Setting the default CacheAwareContextLoaderDelegate through a system property is no longer supported. github.com - Removed
GenericPropertiesContextLoader
The deprecated GenericPropertiesContextLoader is removed from the TestContext framework. github.com
And 6 more in this version.
org.springframework:spring-core 6.0.0-M5 breaking changes
- Behavior changed
Nested exception messages no longer include the messages from the causal chain. github.com - Behavior changed
Scheduling APIs replace java.util.Date and TimeUnit usage with java.time classes, which may change types users pass or receive. github.com
And 2 more in this version.
org.springframework:spring-core 6.0.0-M4 breaking changes
- Removed
org.springframework.core.annotation.MergedAnnotations.SearchStrategy.TYPE_HIERARCHY_AND_ENCLOSING_CLASSES
The TYPE_HIERARCHY_AND_ENCLOSING_CLASSES search strategy for MergedAnnotations has been removed. central.sonatype.com - Removed
org.springframework.core.NestedIOException
The obsolete NestedIOException class has been removed. central.sonatype.com
And 2 more in this version.
org.springframework:spring-core 6.0.0-M3 breaking changes
- Removed
org.springframework.util.SocketUtils
The deprecated SocketUtils class has been removed. central.sonatype.com - Behavior changed
@Bean
Overloaded @Bean methods are now rejected by default; rename them or explicitly allow overloading. github.com
org.springframework:spring-core 6.0.0-M2 breaking changes
- Behavior changed
WebSocketConfigurationSupport
WebSocketConfigurationSupport no longer registers a TaskScheduler bean; configure one yourself if needed. github.com
org.springframework:spring-core 6.0.0-M1 breaking changes
- Removed
Support for the deprecated Java SecurityManager has been removed. github.com - Renamed
APIs move from the javax.* namespace to jakarta.*, so imports and dependencies must be updated. github.com
And 4 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-expression
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.