nav emailalert searchbtn searchbox tablepage yinyongbenwen piczone journalimg journalInfo journalinfonormal searchdiv searchzone qikanlogo popupnotification paper paperNew
2023, 01, v.39 73-75
MyBatis框架在数据持久层中的应用研究
基金项目(Foundation): 咸阳师范学院专项科研计划项目(XSYK19021;XSYK19054); 咸阳师范学院教学改革研究项目(2019Y015); 咸阳师范学院2020年省级大学生创新创业训练计划项目(S202010722036)
邮箱(Email):
DOI:
发布时间: 2023-01-20
出版时间: 2023-01-20
移动端阅读
摘要:

针对原生JDBC在数据持久层开发中存在的硬编码、结果集与对象映射繁琐等缺点,提出了基于MyBatis框架的数据持久层开发方案。分析了MyBatis框架的核心组件及功能,阐述了开发DAO的两种实现方法,结合目标考核管理系统的实际需求,详细描述了MyBatis框架的具体应用过程。实践表明MyBatis框架简化了DAO的开发,解耦合了SQL语句与Java代码,省略了查询结果集与POJO对象的映射过程,能够提高数据持久层的开发效率。

Abstract:

There are some shortcomings in using native JDBC to develop data persistence layer, such as hard coding, the tedious mapping between result set and object. Therefore, the paper proposes a data persistence layer development scheme based on MyBatis framework. It analyzes the core components and functions of MyBatis framework, and describes two implementation methods of developing DAO, it describes the application process of MyBatis framework detailly according to the actual requirements of the target assessment management system. Practice shows that MyBatis framework simplifies the development of DAO, decouples SQL statements and Java code, omits the mapping between query result set and POJO object, and improves the development efficiency of data persistence layer.

基本信息:

中图分类号:TP311.13

引用信息:

[1]欧阳宏基,葛萌,程海波.MyBatis框架在数据持久层中的应用研究[J].微型电脑应用,2023,39(01):73-75.

基金信息:

咸阳师范学院专项科研计划项目(XSYK19021;XSYK19054); 咸阳师范学院教学改革研究项目(2019Y015); 咸阳师范学院2020年省级大学生创新创业训练计划项目(S202010722036)

发布时间:

2023-01-20

出版时间:

2023-01-20

检 索 高级检索

引用

GB/T 7714-2015 格式引文
MLA格式引文
APA格式引文