我刚刚使用v3.1-SNAPSHOT驱动程序下载了MongoDB v3.1.7和updated my pom,但我仍然没有看到GridFS的更改支持new classes/API。这是remarked on the mailing list(2015年3月28日)新的GridFS在3.0中没有包含的地方发生了变化,但是它将成为3.1的一部分。他们被包括在内了吗? latest blog post中没有提到任何内容。
pom.xml
<dependencies>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<name>Sontatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
最新博文:
更新: 我找到了Jira&#34; Create new GridFS API&#34;迁移GridFS API,标记为RESOLVED for 3.1,但更改尚未在maven中(可能还有二进制分发)。任何人都知道如何使用二进制文件(如果需要)和maven repo?
创建新的GridFS API
详细
Type: New Feature Status: Resolved Priority: Major - P3 Resolution: Fixed Affects Version/s: None Fix Version/s: 3.1 Component/s: GridFS Labels: None
说明
Based on an upcoming cross-driver specification, this should use the idioms and classes introduced in the new CRUD APi, rather than the deprecated com.mongodb.DB API.
创建时间:2015年3月20日09:55:04 GMT + 0000
更新时间:2015年9月1日下午04:25:41 GMT + 0000
已解决: 2015年9月1日 04:25:41 PM GMT + 0000