org.springframework.data:spring-data-mongodb breaking changes
org.springframework.data:spring-data-mongodb 5.0.0 (November 14, 2025) is its newest release with breaking changes, 103 of them. The first: Removes JMX support in org.springframework.data:spring-data-mongodb 5.0.0. Every breaking API change we have recorded in org.springframework.data:spring-data-mongodb on Maven Central: 253 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.2.0. Source repository
Packages on Maven Central run on Java. Java end of life dates.
org.springframework.data:spring-data-mongodb 5.0.0 breaking changes
- Removed
JMX support was removed, so code that relies on it must stop using it. github.com - Removed
org.springframework.data.mongodb.config.MongoJmxParser
org.springframework.data.mongodb.config.MongoJmxParser was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.OutOperation.insertDocuments
OutOperation.insertDocuments was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.OutOperation.mode
OutOperation.mode was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.OutOperation.OutMode
org.springframework.data.mongodb.core.aggregation.OutOperation.OutMode was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.OutOperation.replaceCollection
OutOperation.replaceCollection was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.OutOperation.replaceDocuments
OutOperation.replaceDocuments was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.OutOperation.uniqueKey
OutOperation.uniqueKey was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.OutOperation.uniqueKeyOf
OutOperation.uniqueKeyOf was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.index.GeospatialIndex.withBucketSize
GeospatialIndex.withBucketSize was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.index.GeoSpatialIndexed.bucketSize
GeoSpatialIndexed.bucketSize was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.mapreduce.MapReduceOptions.getOutputSharded
MapReduceOptions.getOutputSharded was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.mapreduce.MapReduceOptions.outputSharded
MapReduceOptions.outputSharded was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.MongoClientSettingsFactoryBean.setStreamFactoryFactory
MongoClientSettingsFactoryBean.setStreamFactoryFactory was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.MongoTemplate.doFindAndModify
MongoTemplate.doFindAndModify was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.ReactiveMongoTemplate.doFindAndModify
ReactiveMongoTemplate.doFindAndModify was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.AbstractMonitor was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.AssertMetrics
org.springframework.data.mongodb.monitor.AssertMetrics was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.BackgroundFlushingMetrics
org.springframework.data.mongodb.monitor.BackgroundFlushingMetrics was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.BtreeIndexCounters
org.springframework.data.mongodb.monitor.BtreeIndexCounters was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.ConnectionMetrics
org.springframework.data.mongodb.monitor.ConnectionMetrics was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.GlobalLockMetrics
org.springframework.data.mongodb.monitor.GlobalLockMetrics was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.MemoryMetrics
org.springframework.data.mongodb.monitor.MemoryMetrics was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.OperationCounters
org.springframework.data.mongodb.monitor.OperationCounters was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.monitor.ServerInfo
org.springframework.data.mongodb.monitor.ServerInfo was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.aot.AotMongoRepositoryPostProcessor.contributeType
AotMongoRepositoryPostProcessor.contributeType was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.config.ReactiveMongoRepositoryConfigurationExtension.getRepositoryFactoryClassName
ReactiveMongoRepositoryConfigurationExtension.getRepositoryFactoryClassName was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.query.AbstractMongoQuery.getSpELExpressionEvaluatorFor
AbstractMongoQuery.getSpELExpressionEvaluatorFor was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.query.AbstractReactiveMongoQuery.getSpelEvaluatorFor
AbstractReactiveMongoQuery.getSpelEvaluatorFor was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.query.MongoParameters.getDistanceRangeIndex
MongoParameters.getDistanceRangeIndex was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.query.PartTreeMongoQuery.getSpELExpressionEvaluatorFor
PartTreeMongoQuery.getSpELExpressionEvaluatorFor was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.query.ReactivePartTreeMongoQuery.getSpelEvaluatorFor
ReactivePartTreeMongoQuery.getSpelEvaluatorFor was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.repository.support.ReactiveMongoRepositoryFactoryBean.createDefaultQueryMethodEvaluationContextProvider
ReactiveMongoRepositoryFactoryBean.createDefaultQueryMethodEvaluationContextProvider was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.util.MongoCompatibilityAdapter
org.springframework.data.mongodb.util.MongoCompatibilityAdapter was removed in org.springframework.data:spring-data-mongodb 5.0.0 central.sonatype.com - Renamed
org.springframework.data.mongodb.repository.aot.AotMongoRepositoryPostProcessor.contribute
Use AotMongoRepositoryPostProcessor.configureTypeContributions instead. central.sonatype.com - Behavior changed
MongoDB observations now always include the Collection tag, which may affect metrics consumers. github.com - Behavior changed
The default BigDecimal behavior changed and broke custom converters, so review custom converter setups. github.com - Default changed
The default UUID representation is now Standard (BSON binary subtype 4), so review existing UUID data handling. github.com - Default changed
The representation format is no longer defaulted for UUID, BigDecimal and BigInteger, so these must be configured explicitly. github.com - Default changed
AOT repositories are now enabled by default, which changes how repositories are created. github.com - Default changed
DefaultMessageListenerContainer
DefaultMessageListenerContainer switched to auto-startup, so it starts without explicit configuration. github.com - Signature changed
org.springframework.data.mongodb.aot.MongoAotPredicates.IS_REACTIVE_LIBARARY_AVAILABLE
Was static final java.util.function.Predicate<org.springframework.data.util.ReactiveWrappers.ReactiveLibrary> IS_REACTIVE_LIBARARY_AVAILABLE; now static final... central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper.getFallbackTypeFor
Was protected org.springframework.data.util.TypeInformation<?> getFallbackTypeFor(org.bson.conversions.Bson); now protected org.springframework.data.core.TypeInformation<?> getFallbackTypeFor(org.bson.conversions.Bson). central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.LazyLoadingProxy
Was interface LazyLoadingProxy; now interface LazyLoadingProxy extends org.springframework.data.mongodb.core.mapping.Wrapped. central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.MappingMongoConverter.addCustomTypeKeyIfNecessary
Was protected void addCustomTypeKeyIfNecessary(org.springframework.data.util.TypeInformation<?>, Object, org.bson.conversions.Bson); now protected void addCustomTypeKeyIfNecessary(org.springframework.data.core.TypeInformation<?>, Object... central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.MappingMongoConverter.BSON
Was static final org.springframework.data.util.TypeInformation<org.bson.conversions.Bson> BSON; now static final org.springframework.data.core.TypeInformation<org.bson.conversions.Bson> BSON. central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.MappingMongoConverter.ConversionContext.convert
Was <S> S convert(Object, org.springframework.data.util.TypeInformation<? extends S>) <S> S convert(Object, org.springframework.data.util.TypeInformation<? extends S>... central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.MappingMongoConverter.DefaultConversionContext.convert
Was <S> S convert(Object, org.springframework.data.util.TypeInformation<? extends S>) <S> S convert(Object, org.springframework.data.util.TypeInformation<? extends S>... central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.MappingMongoConverter.getPotentiallyConvertedSimpleRead
Was protected Object getPotentiallyConvertedSimpleRead(Object, org.springframework.data.util.TypeInformation<?>); now protected Object getPotentiallyConvertedSimpleRead(Object, org.springframework.data.core.TypeInformation<?>). central.sonatype.com - Signature changed
org.springframework.data.mongodb.core.convert.MappingMongoConverter.maybeConvertList
Was java.util.List<Object> maybeConvertList(Iterable<?>, org.springframework.data.util.TypeInformation<?>); now java.util.List<Object> maybeConvertList(Iterable<?>, org.springframework.data.core.TypeInformation<?>). central.sonatype.com
And 53 more in this version. Sign up to see every change
org.springframework.data:spring-data-mongodb 4.0.0 breaking changes
- Removed
org.springframework.data.mongodb.config.AbstractMongoClientConfiguration.getMappingBasePackage
AbstractMongoClientConfiguration.getMappingBasePackage was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.ADD
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.ADD was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.CMP
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.CMP was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.EQ
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.EQ was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.GT
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.GT was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.GTE
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.GTE was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.LT
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.LT was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.LTE
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.LTE was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.MULTIPLY
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.MULTIPLY was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com - Removed
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.NE
org.springframework.data.mongodb.core.aggregation.AggregationFunctionExpressions.NE was removed in org.springframework.data:spring-data-mongodb 4.0.0 central.sonatype.com
And 135 more in this version. Sign up to see every change
org.springframework.data:spring-data-mongodb 4.0.0-RC1 breaking changes
- Removed
ClassTypeInformation
References to ClassTypeInformation were removed from TypeInformation. Code that refers to ClassTypeInformation through TypeInformation must change. github.com
org.springframework.data:spring-data-mongodb 4.0.0-M6 breaking changes
- Signature changed
MongoOperations.updateMulti
The Kotlin extension function now takes UpdateDefinition rather than a narrower type. Code calling it with the old type should still compile, but overrides or references may need checking. github.com
org.springframework.data:spring-data-mongodb 4.0.0-M2 breaking changes
- Renamed
The library moves to Jakarta EE 9 APIs. Code that depends on the older Java EE types may need to update its imports and dependencies. github.com - Signature changed
aggregateStream
The aggregateStream method now uses java.util.stream.Stream instead of the previous return type. Callers must adapt to the new type. github.com - Signature changed
stream
The stream method now uses java.util.stream.Stream instead of the previous return type. Callers must adapt to the new type. github.com
Related packages
- org.springframework.data:spring-data-commons
- org.springframework.data:spring-data-jpa
- org.springframework.data:spring-data-redis
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.