摘要
随着Spring Boot和Mongo DB技术的进一步完善和发展,采用该解决方案的企业如同雨后春笋般不断涌现。但是Spring Boot整合Mongo DB数据库的时候却遇到了一些问题,例如没有完整的数据持久化解决方案。然而回顾传统关系型数据库却有Hibernate完成该工作。本文首先介绍了Spring Boot和Mongo DB的原理及其技术背景,具体地分析了该解决方案存在的问题。本文的主要工作是设计并实现基于该解决方案JPA方式的数据持久化框架MDBC。例如MDBC增加完善了聚合函数;提供了处理事务和保证数据一致性的工具;提供了容灾备份的工具等等。
With the further improvement and development of Spring Boot and MongoDB technology, the solution of the enterprise has sprung up like mushrooms. But when Spring Boot integrated MongoDB database has encountered some problems, such as no complete data persistence solution. However, a review of traditional relational database has completed the work of Hibernate. This paper firstly introduces the principle and technical background of Spring Boot and MongoDB, then analyzes the existing problems of the solution. The main work of this paper is to design and implement a data persistence framework based on the solution of JPA MDBC. For example MDBC increasing and perfecting the aggregation function; provide the transaction processing and ensure data consistency; provides a backup and disaster recovery tool and so on.
出处
《电脑与电信》
2016年第1期71-74,共4页
Computer & Telecommunication