基于Spring Cloud的分布式个人财务系统设计与实现

 2022-04-04 09:04

论文总字数:26473字

摘 要

微服务架构风格的提出,给了软件开发者一个全新的搭建自己应用的方式。Spring Cloud作为目前Java社区里面最为成熟的微服务项目构建平台,提供了一套非常有效的模式来帮助开发者实现软件微服务化。

本文基于Spring Cloud平台,来实现一个微服务化的分布式个人财务系统,以用于普通大众的日常记账和财务分析。该方案从实际场景出发,分析了个人财务管理系统的最通用的日常记账和统计功能,并讨论了构建微服务所需的技术组件。本文进行了系统需求分析、说明了各模块的功能设计、并讨论了微服务系统的数据库设计。在系统实现上,本文从系统的层次结构出发,详细说明的系统后端功能和前端界面的实现方法,并对系统如何通过Docker容器部署进行了说明。最后,本文对于测试个人财务系统的过程进行了说明,测试结果表明整个系统稳定易用,可以满足软件用户的实际需求。

总体而言,此次微服务架构风格软件的实现,对于如何设计低耦合、可靠、易扩展的分布式系统而言,是一次很好的实践。

关键词:微服务,Spring Cloud,个人财务,Docker容器,分布式系统

ABSTRACT

The introduction of the microservice architecture style gives software developers a new way to build their own applications. As the most mature microservice project construction platform in the Java community, Spring Cloud provides a very effective pattern to help developers implement microservice software.

This article is based on the Spring Cloud platform to implement a micro-serviced distributed personal finance system for daily accounting and financial analysis of the general public. Starting from the actual scenario, the scheme analyzes the most common daily accounting and statistics functions of the personal financial management system, and discusses the technical components needed to build the microservices. This paper analyzes the system requirements, explains the functional design of each module, and discusses the database design of the microservice system. In the system implementation, this paper which starts from the hierarchical structure of the system, details the system back-end functions and the implementation of the front-end interface, and explains how the system is deployed through the docker container.Finally, this paper describes the process of testing the personal financial system. The test results show that the whole system is stable and easy to use, and can satisfy the actual needs of software users.

Overall, the implementation of the microservice architecture style software is a good practice for designing a distributed system that is low-coupling, reliable, and easy to expand.

KEY WORDS: microservices, Spring Cloud, personal finance, docker container, distributed system

目 录

摘 要 I

ABSTRACT II

第一章 绪论 1

1.1研究背景 1

1.1.1个人财务系统的意义 1

1.1.2微服务简介 2

1.2研究开发内容 4

1.3论文组织结构和思路 4

1.4本章小结 5

第二章 Spring Cloud技术与相关概念 6

2.1微服务构建平台Spring Cloud 6

2.1.1微服务系统架构 6

2.1.2开发环境与工具 8

2.1.3部署方式 8

2.2重要的概念和技术 9

2.2.1安全认证OAuth 9

2.2.2系统防御Hystrix 9

2.2.3声明式调用Fegin 10

2.2.4微服务监控Turbine与MQ 10

2.3本章小结 10

第三章 个人财务系统的设计 11

3.1需求分析 11

3.1.1场景分析 11

3.1.2典型用例分析 12

3.1.3系统设计目标 13

3.2系统总体设计与模块划分 13

3.2.1业务型微服务 14

3.2.2基础设施型微服务和系统前端 14

3.3数据库设计 14

3.3.1数据需求分析 15

3.3.2数据表或数据集合设计 15

3.4本章小结 17

第四章 个人财务系统的实现 18

4.1系统层次结构 18

4.1.1系统架构 18

4.1.2业务微服务的层次结构 19

4.1.3系统的接口 20

4.1.4核心功能的实现 20

4.2系统Web界面的实现 21

4.2.1前端架构 21

4.2.2前端流程展现 22

4.3将微服务运行在Docker上 26

4.4本章小结 27

第五章 个人财务系统的测试 28

5.1系统测试原则与目标 28

5.2系统测试环境 28

5.3系统的功能测试 28

5.3.1注册功能的测试 28

5.3.2通知功能的测试 29

5.3.3登录功能的测试 30

5.3.4记账功能的测试 30

5.3.5统计功能的测试 31

5.4本章小结 32

第六章 个人财务系统的总结与展望 33

6.1毕设工作总结 33

6.2未来工作展望 33

参考文献 34

致 谢 36

第一章 绪论

1.1研究背景

1.1.1个人财务系统的意义

随着互联网在中国社会的全面普及,为方便人们日常生活而专门设计各种Web应用层出不穷,尤其是移动互联网、各种智能终端的快速发展,推动着中国信息化进程的同时,也彻底的改变着普通大众的生活方式。虽然说近十年以来,以智能手机为代表的移动端设备,渐渐的成为人们网上冲浪的首选,基于Android和iOS操作系统的移动端应用开发市场也吸引着越来越多的开发者,但是毫无疑问基于万维网开发的Web应用仍然在人们的工作、学习、娱乐中扮演着不可或缺的角色。无论是各种在线课程的学习,还是有关专业知识的查阅,亦或者是各种直播娱乐,基于万维网的手段对于大部分用户来说往往可以获得更好的应用体验。

剩余内容已隐藏,请支付后下载全文,论文总字数:26473字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;