-
Notifications
You must be signed in to change notification settings - Fork 7
Nosql MongoDB
Landy.Liu edited this page May 26, 2019
·
1 revision
The Spring Data MongoDB 2.x binaries require JDK level 8.0 and above and Spring Framework 5.1.5.RELEASE and above.
In terms of document stores, you need at least version 2.6 of MongoDB.
依赖包Maven坐标如下:
<properties>
<!--<mongodb.version>2.9.3</mongodb.version>-->
<mongodb.version>3.10.1</mongodb.version>
<spring.data.version>2.1.5.RELEASE</spring.data.version>
</properties>
<!--mongodb驱动包:包括bson,mongo-java-drive和mongo-java-core-->
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>${mongodb.version}</version>
</dependency>
<!--mongodb Spring核心包-->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
<version>${spring.data.version}</version>
<exclusions>
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--mongodb Spring依赖包-->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>${spring.data.version}</version>
<scope>compile</scope>
</dependency>
SegmentFault: https://segmentfault.com/u/landy8530
简书:https://www.jianshu.com/u/36a7d3a994ac
CSDN:https://blog.csdn.net/landy8530
开源中国:https://my.oschina.net/landy8530
微信公众号:蚂蚁与咖啡的故事
Core组件
DataCache组件
Nosql组件
Export组件
文件服务组件
操作指引