Skip to content

Commit 6aab985

Browse files
committed
Create spring-boot-mongodb module
1 parent be12093 commit 6aab985

File tree

57 files changed

+150
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+150
-109
lines changed

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ include "spring-boot-project:spring-boot-ldap"
7878
include "spring-boot-project:spring-boot-liquibase"
7979
include "spring-boot-project:spring-boot-neo4j"
8080
include "spring-boot-project:spring-boot-mail"
81+
include "spring-boot-project:spring-boot-mongodb"
8182
include "spring-boot-project:spring-boot-mustache"
8283
include "spring-boot-project:spring-boot-parent"
8384
include "spring-boot-project:spring-boot-pulsar"

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dependencies {
3535
optional(project(":spring-boot-project:spring-boot-ldap"))
3636
optional(project(":spring-boot-project:spring-boot-liquibase"))
3737
optional(project(":spring-boot-project:spring-boot-mail"))
38+
optional(project(":spring-boot-project:spring-boot-mongodb"))
3839
optional(project(":spring-boot-project:spring-boot-neo4j"))
3940
optional(project(":spring-boot-project:spring-boot-quartz"))
4041
optional(project(":spring-boot-project:spring-boot-r2dbc"))

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/data/mongo/MongoHealthContributorAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2929
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
30-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
30+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
3131
import org.springframework.context.annotation.Bean;
3232
import org.springframework.data.mongodb.core.MongoTemplate;
3333

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/mongo/MongoMetricsAutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProperty;
3434
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3535
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
36-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
37-
import org.springframework.boot.autoconfigure.mongo.MongoClientSettingsBuilderCustomizer;
36+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
37+
import org.springframework.boot.mongodb.autoconfigure.MongoClientSettingsBuilderCustomizer;
3838
import org.springframework.context.annotation.Bean;
3939

4040
/**

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/data/mongo/MongoHealthContributorAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
import org.springframework.boot.actuate.data.mongo.MongoHealthIndicator;
2323
import org.springframework.boot.autoconfigure.AutoConfigurations;
2424
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
25-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
25+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
2626
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2727

2828
import static org.assertj.core.api.Assertions.assertThat;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/data/mongo/MongoReactiveHealthContributorAutoConfigurationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,8 +24,8 @@
2424
import org.springframework.boot.autoconfigure.AutoConfigurations;
2525
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
2626
import org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration;
27-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
28-
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
27+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
28+
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
2929
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
3030

3131
import static org.assertj.core.api.Assertions.assertThat;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebEndpointsAutoConfigurationIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
3434
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
3535
import org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration;
36-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
37-
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
3836
import org.springframework.boot.cassandra.autoconfigure.CassandraAutoConfiguration;
3937
import org.springframework.boot.context.annotation.UserConfigurations;
4038
import org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration;
4139
import org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration;
4240
import org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration;
41+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
42+
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
4343
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
4444
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
4545
import org.springframework.boot.testsupport.classpath.ClassPathExclusions;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/mongo/MongoMetricsAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@
3434

3535
import org.springframework.boot.actuate.autoconfigure.metrics.test.MetricsRun;
3636
import org.springframework.boot.autoconfigure.AutoConfigurations;
37-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
37+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
3838
import org.springframework.boot.test.context.FilteredClassLoader;
3939
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
4040
import org.springframework.boot.test.context.runner.ApplicationContextRunner;

spring-boot-project/spring-boot-autoconfigure-all/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ dependencies {
5454
optional(project(":spring-boot-project:spring-boot-jdbc"))
5555
optional(project(":spring-boot-project:spring-boot-jsonb"))
5656
optional(project(":spring-boot-project:spring-boot-liquibase"))
57+
optional(project(":spring-boot-project:spring-boot-mongodb"))
5758
optional(project(":spring-boot-project:spring-boot-neo4j"))
5859
optional(project(":spring-boot-project:spring-boot-r2dbc"))
5960
optional(project(":spring-boot-project:spring-boot-reactor-netty"))

spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/session/ReactiveSessionAutoConfigurationMongoTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,9 +27,9 @@
2727
import org.springframework.boot.autoconfigure.AutoConfigurations;
2828
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
2929
import org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration;
30-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
31-
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
3230
import org.springframework.boot.autoconfigure.web.reactive.WebSessionIdResolverAutoConfiguration;
31+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
32+
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
3333
import org.springframework.boot.test.context.FilteredClassLoader;
3434
import org.springframework.boot.test.context.assertj.AssertableReactiveWebApplicationContext;
3535
import org.springframework.boot.test.context.runner.ContextConsumer;

spring-boot-project/spring-boot-autoconfigure-all/src/dockerTest/java/org/springframework/boot/autoconfigure/session/SessionAutoConfigurationMongoTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,8 +25,8 @@
2525

2626
import org.springframework.boot.autoconfigure.AutoConfigurations;
2727
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
28-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
2928
import org.springframework.boot.autoconfigure.web.ServerProperties;
29+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
3030
import org.springframework.boot.test.context.FilteredClassLoader;
3131
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
3232
import org.springframework.boot.test.context.runner.ContextConsumer;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2424
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2525
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
26-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
27-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails;
28-
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
29-
import org.springframework.boot.autoconfigure.mongo.PropertiesMongoConnectionDetails;
3026
import org.springframework.boot.context.properties.EnableConfigurationProperties;
27+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
28+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails;
29+
import org.springframework.boot.mongodb.autoconfigure.MongoProperties;
30+
import org.springframework.boot.mongodb.autoconfigure.PropertiesMongoConnectionDetails;
3131
import org.springframework.boot.ssl.SslBundles;
3232
import org.springframework.context.annotation.Bean;
3333
import org.springframework.context.annotation.Import;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,8 +22,8 @@
2222
import org.springframework.beans.factory.ObjectProvider;
2323
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2424
import org.springframework.boot.autoconfigure.domain.EntityScanner;
25-
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
2625
import org.springframework.boot.context.properties.PropertyMapper;
26+
import org.springframework.boot.mongodb.autoconfigure.MongoProperties;
2727
import org.springframework.context.ApplicationContext;
2828
import org.springframework.context.annotation.Bean;
2929
import org.springframework.context.annotation.Configuration;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDatabaseFactoryConfiguration.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,8 +20,8 @@
2020

2121
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2222
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
23-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails;
24-
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
23+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails;
24+
import org.springframework.boot.mongodb.autoconfigure.MongoProperties;
2525
import org.springframework.context.annotation.Bean;
2626
import org.springframework.context.annotation.Configuration;
2727
import org.springframework.data.mongodb.MongoDatabaseFactory;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDatabaseFactoryDependentConfiguration.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2424
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
25-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails;
26-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails.GridFs;
27-
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
28-
import org.springframework.boot.autoconfigure.mongo.MongoProperties.Gridfs;
25+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails;
26+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails.GridFs;
27+
import org.springframework.boot.mongodb.autoconfigure.MongoProperties;
28+
import org.springframework.boot.mongodb.autoconfigure.MongoProperties.Gridfs;
2929
import org.springframework.context.annotation.Bean;
3030
import org.springframework.context.annotation.Configuration;
3131
import org.springframework.dao.DataAccessException;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfiguration.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,11 +31,11 @@
3131
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
3232
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3333
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
34-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails;
35-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails.GridFs;
36-
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
37-
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
3834
import org.springframework.boot.context.properties.EnableConfigurationProperties;
35+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails;
36+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails.GridFs;
37+
import org.springframework.boot.mongodb.autoconfigure.MongoProperties;
38+
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
3939
import org.springframework.context.annotation.Bean;
4040
import org.springframework.context.annotation.Import;
4141
import org.springframework.core.io.buffer.DataBufferFactory;

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/additional-spring-configuration-metadata.json

-18
Original file line numberDiff line numberDiff line change
@@ -326,24 +326,6 @@
326326
"description": "Whether to enable JDBC repositories.",
327327
"defaultValue": true
328328
},
329-
{
330-
"name": "spring.data.mongodb.grid-fs-database",
331-
"type": "java.lang.String",
332-
"deprecation": {
333-
"replacement": "spring.data.mongodb.gridfs.database",
334-
"level": "error"
335-
}
336-
},
337-
{
338-
"name": "spring.data.mongodb.repositories.type",
339-
"type": "org.springframework.boot.autoconfigure.data.RepositoryType",
340-
"description": "Type of Mongo repositories to enable.",
341-
"defaultValue": "auto"
342-
},
343-
{
344-
"name": "spring.data.mongodb.uri",
345-
"defaultValue": "mongodb://localhost/test"
346-
},
347329
{
348330
"name": "spring.data.neo4j.auto-index",
349331
"description": "Auto index mode.",

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfigurati
4444
org.springframework.boot.autoconfigure.http.client.HttpClientAutoConfiguration
4545
org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration
4646
org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
47-
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
48-
org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration
4947
org.springframework.boot.autoconfigure.netty.NettyAutoConfiguration
5048
org.springframework.boot.autoconfigure.reactor.ReactorAutoConfiguration
5149
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MixedMongoRepositoriesAutoConfigurationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
import org.springframework.boot.autoconfigure.data.mongo.country.Country;
2929
import org.springframework.boot.autoconfigure.data.mongo.country.CountryRepository;
3030
import org.springframework.boot.autoconfigure.domain.EntityScan;
31-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
3231
import org.springframework.boot.data.jpa.autoconfigure.JpaRepositoriesAutoConfiguration;
3332
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
3433
import org.springframework.boot.jpa.autoconfigure.hibernate.HibernateJpaAutoConfiguration;
34+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
3535
import org.springframework.boot.test.util.TestPropertyValues;
3636
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
3737
import org.springframework.context.annotation.Configuration;

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfigurationTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,9 +35,9 @@
3535
import org.springframework.boot.autoconfigure.data.mongo.city.City;
3636
import org.springframework.boot.autoconfigure.data.mongo.country.Country;
3737
import org.springframework.boot.autoconfigure.domain.EntityScan;
38-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
39-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails;
40-
import org.springframework.boot.autoconfigure.mongo.PropertiesMongoConnectionDetails;
38+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
39+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails;
40+
import org.springframework.boot.mongodb.autoconfigure.PropertiesMongoConnectionDetails;
4141
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
4242
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
4343
import org.springframework.context.annotation.Bean;

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoReactiveAndBlockingRepositoriesAutoConfigurationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,8 +25,8 @@
2525
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
2626
import org.springframework.boot.autoconfigure.data.mongo.city.CityRepository;
2727
import org.springframework.boot.autoconfigure.data.mongo.city.ReactiveCityRepository;
28-
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
29-
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
28+
import org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration;
29+
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
3030
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
3131
import org.springframework.context.annotation.Configuration;
3232
import org.springframework.context.annotation.Import;

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfigurationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,8 +26,8 @@
2626

2727
import org.springframework.boot.autoconfigure.AutoConfigurations;
2828
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
29-
import org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails;
30-
import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
29+
import org.springframework.boot.mongodb.autoconfigure.MongoConnectionDetails;
30+
import org.springframework.boot.mongodb.autoconfigure.MongoReactiveAutoConfiguration;
3131
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
3232
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
3333
import org.springframework.context.annotation.Bean;

0 commit comments

Comments
 (0)