mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Upgrade to MongoDB 3
This commit upgrades to MongoDB 3. Dependency management has been added for the new and preferred mongodb-driver artifact. The starter has been updated to use this new artifact rather than monogo-java-driver. Dependency management for mongo-java-driver has been retained to avoid causing problems for people who have declared the dependency explicitly. The auto-configuration for Embedded Mongo has also been updated to use 3.2.2 by default. Closes gh-3011
This commit is contained in:
parent
44b4df2d3d
commit
6f5bd2e13a
@ -37,7 +37,7 @@ public class EmbeddedMongoProperties {
|
||||
/**
|
||||
* Version of Mongo to use.
|
||||
*/
|
||||
private String version = "2.6.10";
|
||||
private String version = "3.2.2";
|
||||
|
||||
private final Storage storage = new Storage();
|
||||
|
||||
|
@ -61,7 +61,7 @@ public class EmbeddedMongoAutoConfigurationTests {
|
||||
|
||||
@Test
|
||||
public void defaultVersion() {
|
||||
assertVersionConfiguration(null, "2.6.10");
|
||||
assertVersionConfiguration(null, "3.2.2");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -125,7 +125,7 @@
|
||||
<lombok.version>1.16.8</lombok.version>
|
||||
<mariadb.version>1.4.4</mariadb.version>
|
||||
<mockito.version>1.10.19</mockito.version>
|
||||
<mongodb.version>2.14.2</mongodb.version>
|
||||
<mongodb.version>3.2.2</mongodb.version>
|
||||
<mysql.version>5.1.39</mysql.version>
|
||||
<narayana.version>5.3.2.Final</narayana.version>
|
||||
<nekohtml.version>1.9.22</nekohtml.version>
|
||||
@ -1893,6 +1893,11 @@
|
||||
<artifactId>mockito-core</artifactId>
|
||||
<version>${mockito.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mongodb</groupId>
|
||||
<artifactId>mongodb-driver</artifactId>
|
||||
<version>${mongodb.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mongodb</groupId>
|
||||
<artifactId>mongo-java-driver</artifactId>
|
||||
|
@ -25,7 +25,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mongodb</groupId>
|
||||
<artifactId>mongo-java-driver</artifactId>
|
||||
<artifactId>mongodb-driver</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
|
Loading…
Reference in New Issue
Block a user