**Spring Data Document with MongoDB Support 1.0.0.M3** 是 Spring Data 早期针对 MongoDB 发布的里程碑版本(Milestone
Spring Data Document with MongoDB Support 1.0.0.M3是 Spring Data 早期针对 MongoDB 发布的里程碑版本Milestone 3发布于2011 年。它是Spring Data MongoDB 项目的前身从1.0.0.M4版本起项目正式更名为Spring Data MongoDB。一、版本背景与定位项目原名Spring Data Document (代号DATADOC)核心目标为 Spring 开发者提供基于文档型数据库当时主要是 MongoDB的统一数据访问抽象。版本状态早期开发里程碑非稳定版用于预览功能与收集反馈。关键更名M3 是最后一个以 “Spring Data Document” 命名的版本M4 起更名为 Spring Data MongoDB包路径也从org.springframework.data.document.mongodb改为org.springframework.data.mongodb。二、核心新特性相对于 M2重构 MongoTemplate 构造函数移除旧构造器MongoTemplate(Mongo, String, String)引入新构造器MongoTemplate(MongoDbFactory)、MongoTemplate(Mongo, String, UserCredentials)目的简化工厂模式、统一认证与数据源配置。增强 Repository 编程模型完善基于接口的CRUD Repository自动实现。支持通过方法名解析查询如findByLastName()。对象映射Mapping优化强化POJO 与 MongoDB BSON 文档的转换能力。支持Document,Id,Field等核心注解。基础操作完善支持完整的增删改查CRUD、批量操作、原子findAndModify。支持更新修饰符Update Modifiers实现文档部分更新。异常转译将 MongoDB 原生异常转为 SpringDataAccessException层次结构。三、技术依赖MongoDB Java Driver:2.5.3 ~ 2.6.5Spring Framework: 3.0.x 系列Spring Data Commons: 1.2.x 系列四、Maven 依赖坐标!-- 注意需添加 Spring Milestone 仓库 --repositoriesrepositoryidspring-milestone/idurlhttp://repo.spring.io/milestone/url/repository/repositoriesdependencygroupIdorg.springframework.data/groupIdartifactIdspring-data-document-mongodb/artifactIdversion1.0.0.M3/version/dependencydependencygroupIdorg.mongodb/groupIdartifactIdmongo-java-driver/artifactIdversion2.5.3/version/dependency五、历史意义此版本是Spring 生态进军 NoSQL的关键里程碑奠定了后续 Spring Data MongoDB 简化开发的基石。虽然 API 已过时但它确立的Template 模式与Repository 抽象至今仍是 Spring Data 家族的核心设计思想。总结1.0.0.M3 是 Spring Data MongoDB 的历史起点。现代开发应直接使用Spring Data MongoDB 4.x稳定版。Spring Data Document with MongoDB Support 1.0.0.M3 ReleasedI am pleased to announce that the Milestone 3 release of the Spring Data Document 1.0 project with MongoDB support is now available!The primary goal of the Spring Data project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.The MongoDB module provides integration with the MongoDB document database.Downloads | JavaDocs | Reference Documentation | ChangelogTo learn more about the project, visit the Spring Data MongoDB Page.The changes and new features in Spring Data Document 1.0.0.M3 includes much improved mapping and conversion support. The MappingMongoConverter is now the default converter used by the MongoTemplate and the SimpleMongoConverter has been deprecated and will be removed. The concept of a default collection name has also been removed and all operations of the MongoTemplate are based on the collection name used for the entity class that is the target of the operation. The collection name used for an entity class defaults to the clasname starting with a lower-case letter but it can be customized using the Document annotation. See the changelog for more details.Looking forward to your feedback on the forum or in the issue tracker.comments powered by Disqus
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2538018.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!