Spring框架对使用Java平台的数据库桥接层的可靠性调查外文翻译资料

 2022-08-10 04:08

Available online at www.sciencedirect.com

ScienceDirect

Procedia Computer Science 161 (2019) 1036–1045

The Fifth Information Systems International Conference 2019

Spring Framework Reliability Investigation Against Database Bridging Layer Using Java Platform

Arief Ginanjar*, Mokhamad Hendayun

University of Langlangbuana, Jl. Karapitan No. 116, Bandung, 40261, Indonesia

Abstract

There are several frameworks that can be used to make create applications easier in the Java programming environment, whether in web applications or desktop applications. If we focus more on Java web framework, there is Spring Framework that has been popular since 2004, especially with the ability of Spring Framework which can be combined with various other frameworks such as Hibernate Framework, Ibatis or namely MyBatis Framework today and several other frameworks. This research was conducted in comparing ability of data loading from a web service application built using the Java programming language with the Spring Framework, especially if combined with Database Bridging Layer such as Java Database Connection (JDBC), Hibernate Framework, MyBatis Framework, plus additional framework capabilities contained at Hibernate and MyBatis that have as cache data layer. Performance test scenario create a web service in Spring Framework then accessed by custom test script built with third party code and call it repeatedly with a certain time period.

copy; 2019 The Authors. Published by Elsevier B.V.

This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/) Peer-review under responsibility of the scientific committee of The Fifth Information Systems International Conference 2019. Keywords: Spring Framework; Hibernate; Ibatis; MyBatis; JDBC; Cache Engine; Web Service. JSON.

* Corresponding author. Tel.: 62-82-121-633-200. E-mail address: arief.ginanjar@unla.ac.id

1877-0509 copy; 2019 The Authors. Published by Elsevier B.V.

This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/) Peer-review under responsibility of the scientific committee of The Fifth Information Systems International Conference 2019. 10.1016/j.procs.2019.11.214

Arief Ginanjar et al. / Procedia Computer Science 161 (2019) 1036–1045?

1037

1. Introduction

1.1. Background

Spring Framework is one of the first frameworks that developed and began to be used in the implementation of making web applications using java platform in the early 2000s. Over time other frameworks have emerged that offer diverse advantages, but the popularity of Spring Framework still persists and is used until 2018. This can be seen from the following info graphics which illustrate the level of interest of java programmers to some of the most popular frameworks in the world between 2004 and 2018.

From the infographic in Fig. 1, there are some frameworks that are quite popularly used by programmers to be implemented in their work including Spring Framework, Hibernate, JSF, Struts and MyBatis, these five frameworks are the most popular among the frameworks that are used by java programmers.

a.

b.

Fig. 1. Interest of several popular frameworks in the world from 2004 to 2018 (a) and 2008 to 2018; (b) (Source: Google Trend).

a.

b.

Fig. 2. Interest of several popular frameworks in Indonesia from 2008 to 2018 (a) and 2013 to 2018; (b) (Source: Google Trend).

In Fig. 2-a, there is a fluctuation in the framework of Java programmers in Indonesia between 2008 and 2010, this indicates that the framework used in the application work is still in the trial stage, but after 2011 it began to show a significant tendency for programmers to find comfort and benefit from each of the popular frameworks. Then what is seen in Fig. 2-b is the tendency of java programmers in Indonesia to five frameworks with a period of 2013 to 2018.

In implementing the use of the Spring Framework in the development of java-based applications, it is often combined with other frameworks including; Java Database Connection (JDBC), Object Relational Mapping with the Hibernate trademark, Java Query Expose Connection with the trademark Ibatis or MyBatis, and the use of a cache

Arief Ginanjar et al. / Procedia Computer Science 161 (2019) 1036–1045

1038

engine that serves to store temporary data in addition to data stored in the database with the aim of increasing application data access speed.

1.2. Reseach goal

The research objectives to be achieved from this study are to know the reliability value of each specimen as listed in Table 1 which will be tested with a series of tests using data names of provinces, cities, districts, sub-districts and villages throughout Indonesia with 98,457 rows of data and data loading performance will be tested by loading looping on a json data url with a certain intensity.

Table 1. Framework Specimens That Will Be Tested.

Specimen

Main Framework

Bridging Framework

Cache Framework

1

Spring MVC

JDBC

-

2

Spring MVC

Hibernate

-

3

Spring MVC

Hibernate

L2 Ehcache

4

Spring MVC

MyBatis

-

5

Spring MVC

MyBatis

LRU MyBatis

With a series of tests, it is expected to be able to know the reliability of each framework when it has to face the performance te

剩余内容已隐藏,支付完成后下载完整资料


可在www.sciencedirect.com上获得

ScienceDirect

程序化计算机科学161 (2019)1036-1045

2019年第五届信息系统国际会议

Spring框架对使用Java平台的数据库桥接层的可靠性调查

Arief Ginanjar*,Mokhamad Hendayun

Langlangbuana大学。Karapitan No.116,万隆,40261,印度尼西亚

摘要

有几种框架可用于在Java编程环境中简化应用程序的创建,无论是在web应用程序还是桌面应用程序中。如果我们更关注Java web框架,那么有一个自2004年以来一直流行的Spring框架,它可以与其他各种框架相结合,如Hibernate框架、Ibatis或现在的MyBatis框架以及其他几个框架。这项研究是在比较能力进行数据加载的web服务应用程序使用Java编程语言构建Spring框架,特别是结合数据库连接层如Java数据库连接(JDBC), Hibernate框架,MyBatis框架,加上额外的框架功能包含在Hibernate和MyBatis缓存数据层。性能测试场景在Spring框架中创建一个web服务,然后由第三方代码构建的自定义测试脚本访问它,并在一定的时间段内重复调用它。

@作者。由Elsevier B.V.出版

这是一篇由2019年第五届信息系统国际会议科学委员会负责的CC BY-NC-ND许可(http://creativecommons.org/licenses/by-nc-nd/4.0/)同行评审的开放获取文章。关键词:Spring框架; Hibernate ; Ibatis ;MyBatis ;JDBC;缓存引擎; Web Service. JSON.

*通讯作者。电话。: 62-82-121-633-200。电子邮件地址:arief.ginanjar@unla.ac.id

1877-0509 copy; 2019作者. 由Elsevier B.V.出版

这是一篇由2019年第五届信息系统国际会议科学委员会负责的CC BY-NC-ND许可(http://creativecommons.org/licenses/by-nc-nd/4.0/)同行评审的开放获取文章。10.1016 / j.procs.2019.11.214

Arief Ginanjar等人。/ procedure dia Computer Science 161 (2019) 1036-1045 ?

1037

1.介绍

1.1。背景

Spring 框架是本世纪初最早开发并开始用于实现使用java平台制作web应用程序的框架之一。随着时间的推移,出现了提供各种优势的其他框架,但是Spring框架的流行仍然持续到2018年。这可以从以下信息图中看出,这些信息图显示了2004年到2018年间java程序员对一些世界上最流行的框架的兴趣程度。

来自图中的信息图表。1、有一些框架是程序员在工作中比较常用的来实现的,包括Spring 框架、Hibernate、JSF、Struts和MyBatis,这五个框架是java程序员使用的框架中最常用的。

一个。

b。

图1.2004年至2018年世界上几个流行框架的兴趣(a)和2008年至2018年;(来源:谷歌趋势)。

一个。

b。

图 2.2008 - 2018年印度尼西亚几个流行框架的兴趣(a)和2013 - 2018年;(来源:谷歌趋势)。

在图1-a中,在印度尼西亚从2008年到2010年,Java程序员中框架的流行程度不相上下,这表明这些框架的使用工作仍处于试验阶段,但2011年后开始表现出显著的程序员倾向于从这些流行的框架中选择最好用,收益最高的一种。那么在图中可以看到什么呢?图2-b是印度尼西亚java程序员在2013年到2018年期间使用5个框架的趋势。

在基于java的应用程序开发中实现Spring框架的使用时,它通常与其他框架相结合,包括;Java数据库连接(JDBC),与Hibernate的特征对象关系映射,Java查询与Ibatis或MyBatis商标的公开连接,以及缓存的使用。

Arief Ginanjar等人。/ procedure dia Computer Science 161 (2019) 1036-1045

1038

除了存储在数据库中的数据外,还用于存储临时数据的引擎,其目的是提高应用程序数据访问速度。

1.2。研究的目标

本研究的研究目标是要知道每个样本的可靠性值如表1所列与一系列的测试将测试数据省份的名字,城市,地区,街道和村庄整个印度尼西亚98457行数据和数据加载性能将通过以一定强度在json数据URL上加载循环来测试。

表1。将被测试的框架样本。

标本

主要框架

桥接框架

缓存框架

1

Spring MVC

JDBC

-

2

Spring MVC

Hibernate

-

3.

Spring MVC

Hibernate

L2 Ehcache

4

Spring MVC

MyBatis

-

5

Spring MVC

MyBatis

LRU MyBatis

通过一系列测试,可以预期每个框架在必须面对使用负载循环的性能测试时的可靠性。因此,当选择在基于java的应用程序开发中应用的Spring框架协作时,它有望成为决策的参考来源。

1.3。研究范围

这项研究仅专注于数据加载网址,并未按照以下技术规范测试插入操作,更新和删除json网址:

使用单独放置在Microsoft Windows 7操作系统中的MariaDB 10.1.19版数据库系统,Oracle VM Virtual Box 5.2.6版中的正版64位。

使用本地主机之间的网络连接-guest虚拟机。

使用Microsoft Windows 7正版64位操作系统作为主机环境。

使用Netbean 8.2作为集成开发编辑器。

使用Spring框架 4.0.1版作为MVC框架。

使用Spring-json taglib作为json输出的库。

使用应用程序容器Apache Tomcat 9.0.12版作为应用程序部署。

使用Java虚拟机版本1.8.0.162(具有设置核心JVM核心默认设置)的64位,而无需作为平台环境进行任何调整。

2.文献综述

2.1。研究方法

编写本研究报告所使用的方法是使用定量研究方法和原型以及通过重复处理过程和系统方法来测试框架性能的过程,其中方法强调要素和组成部分[1,2,3],而处理顺序如下:

bull;文献研究,研究可用作参考的图书馆资源。图书馆资源可以是书籍,论文或讨论Spring框架,Hibernate框架,Ibatis框架和缓存引擎的网页。

bull;分析,描述如何对每个框架的体系结构和编程技术进行分析,以及该技术如何结合这些框架中的每个框架。

bull;软件设计,在框架之间进行组合的软件设计,这些框架将基于从分析中获得的结果进行构建。设计必须符合将要执行的测试方案。

bull;软件实施,将基于从设计中获得的结果来开发的实施软件。此实现将产生包含要测试的样本中指定的框架组合的软件产品。

bull;测试和评估,对已构建的软件产品进行测试,然后对所执行的每个测试方案进行性能评估。

bull;迭代的软件设计和实施阶段以及测试和评估,对软件标本进行测试,如果业务流程未满足研究人员的意愿,将进行检查,然后进行标本软件的设计和重新实现。

bull;应用程序性能测试,对应用程序通过url循环加载施加压力的能力进行测试过程,该过程针对使用url循环脚本方法和研究人员构建的Java编程脚本对内置到应用程序中的标本框架重复进行。

2.2。进化原型模型

在研究实施部分中描述的过程阶段涉及原型模型的演化阶段的情况下,该过程可以如图3所示。原型的演化过程包括四个主要过程,即输入,原型过程,和输出,但在此过程中还必须受到条件的限制;构建的每个功能必须满足系统要求中指定的适当要求,并且参与原型方法论过程的人员的能力必须满足最低系统要求[4]。

图 3.进化原型模型[4]。

2.3。标本架构

使用面向对象编程的原则与方法以及模型,视图和控制器MVC方法,允许程序员开发复杂的抽象思维,而无需关注详细的组件,而封装允许我们关注软件功能,而不必详细思考过程发生的复杂性。(5、6)。

通过将Spring框架、Hibernate框架和MyBatis框架体系结构组合成一个系统,该系统可以弥补每个框架的不足,希望可以对这些框架进行测试,并在组合的过程中进行优化。(7、8、9)。

Arief Ginanjar等人。/ procedure dia Computer Science 161 (2019) 1036-1045

1040

一个。

b。

图4所示。Hibernate框架架构(a) [9];和MyBatis框架架构(b)[8]。

3.3.1研究方法。

3.1。研究背景

当使用进化原型开发软件时,所执行的步骤是从分析、设计和实现、测试和评估开始的,在一定的条件下重复进行,以产生期望的输出。目标是找到在java平台中生成web服务生成器的框架的最佳组合。

3.2。标本的配置

在已进行的试验标本中,已应用的技术方面,即;测试、执行涉及多个系统层,数据库层、应用程序容器层、逻辑编程层和测试脚本层。然后,在每一层中都使用了几种配置,以便该层中的每个系统都可以与其他层交互。

表2。每一层的配置实现。

No

技术

配置

1

数据库

MySQL

默认的

2

应用程序容器

Apache Tomcat

默认的

3.

逻辑编程

Spring框架的组合

具体每个标本

4

脚本Pengujian

Java编程

具体每个标本

然后,将每个样本的测试流存储在虚拟服务器上,安装在来宾操作系统中,然后将Apache Tomcat安装在主机操作系统中,然后使用Netbean IDE version 8运行测试脚本。附图如图1所示。5.表1中所示的每个框架标本还需要若干个其他库作为研究标本中主要框架的支撑,库详情见表3。

图5所示。Spring框架数据流架构测试几个数据库桥接层的性能。

Arief Ginanjar等人。/ procedure dia Computer Science 161 (2019) 1036-1045 ?

1041

如图1所示,这是4.0.1版本的Spring框架的测试样本。使用Java数据库连接(JDBC),则需要另一个库,即JSP标准标记库(JSTL),该库具有函数将数据从Java类环境转换到Java网络环境,然后MySQL-JDBC是Java专门用于具有MySQL特征的数据库服务器的数据库连接(JDBC),然后用JSON Taglib,一个转换工具,用于将数据从JSTL环境转换为Javascript对象表示法。

表3。为每个标本增加一个图书馆。

lt;

剩余内容已隐藏,支付完成后下载完整资料


资料编号:[238267],资料为PDF文档或Word文档,PDF文档可免费转换为Word

原文和译文剩余内容已隐藏,您需要先支付 30元 才能查看原文和译文全部内容!立即支付

以上是毕业论文外文翻译,课题毕业论文、任务书、文献综述、开题报告、程序设计、图纸设计等资料可联系客服协助查找。