中小企业人事管理:SpringBoot框架高级应用
摘 要
随着科学技术的飞速发展,社会的方方面面、各行各业都在努力与现代的先进技术接轨,通过科技手段来提高自身的优势,中小企业人事管理系统当然也不能排除在外。中小企业人事管理系统是以实际运用为开发背景,运用软件工程原理和开发方法,采用springboot框架构建的一个管理系统。整个开发过程首先对软件系统进行需求分析,得出系统的主要功能。接着对系统进行总体设计和详细设计。总体设计主要包括系统功能设计、系统总体结构设计、系统数据结构设计和系统安全设计等;详细设计主要包括系统数据库访问的实现,主要功能模块的具体实现,模块实现关键代码等。最后对系统进行功能测试,并对测试结果进行分析总结,得出系统中存在的不足及需要改进的地方,为以后的系统维护提供了方便,同时也为今后开发类似系统提供了借鉴和帮助。这种个性化的网上管理系统特别注重交互协调与管理的相互配合,激发了管理人员的创造性与主动性,对中小企业人事管理系统而言非常有利。
本中小企业人事管理系统采用的数据库是Mysql,使用springboot框架开发。在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。
关键词:中小企业人事管理系统,springboot框架 Mysql数据库 Java技术
ABSTRACT
With the rapid development of science and technology, all aspects of society and all walks of life are trying to integrate with modern advanced technology, and improve their own advantages through scientific and technological means. Of course, the personnel management system of small and medium-sized enterprises can not be excluded. The personnel management system of small and medium-sized enterprises is a management system based on the practical application, using software engineering principles and development methods, and using springboot framework. In the whole development process, we first analyze the requirements of the software system and get the main functions of the system. Then the overall design and detailed design of the system. The overall design mainly includes system function design, system overall structure design, system data structure design and system security design; The detailed design mainly includes the realization of the system database access, the concrete realization of the main function module, the key code of the module implementation and so on. Finally, the function of the system is tested, and the test results are analyzed and summarized. The deficiencies and the need for improvement in the system are obtained, which provides convenience for the future system maintenance, and also provides reference and help for the future development of similar systems. This personalized online management system pays special attention to the interaction and coordination of management, stimulates the creativity and initiative of managers, and is very beneficial to the personnel management system of small and medium-sized enterprises.
The personnel management system of small and medium-sized enterprises uses MySQL as the database, which is developed with springboot framework. In the design process, it fully ensures the good readability, practicability, expansibility, universality, easy to maintain, easy to operate and concise page of the system code.
Key words: SME personnel management system, springboot framework, MySQL database, Java technology
目 录
摘 要 I
ABSTRACT II
目 录 II
第1章 绪论 1
1.1背景及意义 1
1.2 国内外研究概况 1
1.3 研究的内容 1
第2章 相关技术 2
2.1 Tomcat服务器 2
2.2 Java技术介绍 3
2.3 mysql数据库介绍 3
2.4 springboot框架 4
第3章 系统分析 5
3.1 需求分析 5
3.2 系统可行性分析 5
3.2.1技术可行性:技术背景 5
3.2.2经济可行性 6
3.2.3操作可行性: 6
3.3 项目设计目标与原则 6
3.4系统流程分析 7
3.4.1操作流程 7
3.4.2添加信息流程 8
3.4.3删除信息流程 9
第4章 系统设计 11
4.1 系统体系结构 11
4.2开发流程设计系统 12
4.3 数据库设计原则 13
4.4 数据表 15
第5章 系统详细设计 19
5.1管理员功能模块 20
5.2员工功能模块 23
第6章 系统测试 25
6.1系统测试的目的 25
6.2系统测试方法 25
6.3功能测试 26
结 论 28
致 谢 29
参考文献 30
第6章 系统测试
6.1系统测试的目的
程序设计不能保证没有错误,这是一个开发过程,在错误或错误的过程中都是难以避免的。虽然这是不可避免的,但我们不能使这些错误始终存在于系统中,错误可能会造成无法估量的后果,如系统崩溃,安全信息泄露,系统无法正常启动等,为了避免这些问题,我们需要测试程序,再测试过程中发现问题,并纠正它们,从而使系统更长时间稳定成熟。本章的作用是发现这些问题,并对其进行修改,虽然耗时费力,但对于长期使用而言是非常重要和必要系统的开发。
软件在设计后必须进行测试,调试过程中使用的方法是软件测试方法。在开发新软件时,系统测试是检查软件是否合格的关键步骤,以及是否符合设计目标的参考。测试主要是查看软件中数据的准确性,正确的操作与否,以及操作的结果,还有哪些方面需要改进。
中小企业人事管理系统的实现,对于系统中功能模块的实现及操作都必须通过测试进行来评判系统是否可以准确的实现。在中小企业人事管理系统正式上传使用之前必须做的一步就是系统测试,对于测试发现的错误及时修改处理,保证系统准确无误的供给员工使用。
6.2系统测试方法
在对中小企业人事管理系统进行测试的时候在找到问题的情况下必须在第一时间找到解决问题的办法,不要存在侥幸的心理,这样才能让中小企业人事管理系统开发的质量可以过关,并且开发的周期会大大缩短,还有就是在测试时,不要出现重复性的错误,遇到一个错误问题,要将整个中小企业人事管理系统开发所牵扯的该问题都必须一一解决,提高中小企业人事管理系统平台的安全性、稳定性。
白盒测试与黑盒测试是测试中比较常用的两种方法。
①结构测试俗称白盒测试:这种测试是在对程序的处理过程与结构都有详尽谅解的前提下,顺从程序内部的逻辑而完成的系统测试,以确定系统中所有的通路都能够遵照设计要求正常工作,不出现任何偏差。
②功能测试又成黑盒测试:主要是针对程序功能能够按照设计正常实现的一种检测,在程序接口处进行,检测程序手法数据是否正常,与外部信息的交换是否完整。
6.3功能测试
员工登录测试:
模块名称 测试用例 预期结果 实际结果 是否通过
登录模块 用户名:001 密码:123 弹出错误提示,提示密码错误 弹出错误提示,提示密码错误 通过
登录模块 用户名:123
密码:001 弹出错误提示,提示用户名错误 弹出错误提示,提示用户名错误 通过
登录模块 用户名:001
密码:001 管理员登录成功 管理员登录成功 通过
删除分类测试:
模块名称 测试用例 预期结果 实际结果 是否通过
删除分类模块 分类名:最新通知 删除成功、页面自动跳转 删除成功、页面自动跳转 通过
修改密码测试:
模块名称 测试用例 预期结果 实际结果 是否通过
修改密码模块 原密码:666
新密码:123
确认密码:123 弹出错误提示,提示原密码错误 弹出错误提示,提示原密码错误 通过
修改密码模块 原密码:002 新密码:123
确认密码:333 弹出错误提示,提示确认密码不一致 弹出错误提示,提示确认密码不一致 通过
修改密码模块 原密码:002 新密码:123
确认密码:123 密码修改成功 密码修改成功 通过
通过对功能的测试,中小企业人事管理系统的基本功能都是可行的,不管是系统里面的功能,还是界面的设计都是可值得推广宣传的。