[1]胡营营,赵逢禹.Web 应用中冗余代码检测方法研究[J].计算机技术与发展,2020,30(03):30-35.[doi:10. 3969 / j. issn. 1673-629X. 2020. 03. 006]
 HU Ying-ying,ZHAO Feng-yu.Research on Redundant Code Detection Method in Web Application[J].Computer Technology and Development,2020,30(03):30-35.[doi:10. 3969 / j. issn. 1673-629X. 2020. 03. 006]
点击复制

Web 应用中冗余代码检测方法研究()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
30
期数:
2020年03期
页码:
30-35
栏目:
智能、算法、系统工程
出版日期:
2020-03-10

文章信息/Info

Title:
Research on Redundant Code Detection Method in Web Application
文章编号:
1673-629X(2020)03-0030-06
作者:
胡营营赵逢禹
上海理工大学 光电信息与计算机工程学院,上海 200093
Author(s):
HU Ying-yingZHAO Feng-yu
School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
关键词:
Web应用冗余代码抽象语法树Web应用调用树
Keywords:
Web applicationredundancy codeabstract syntax treeapplication call tree
分类号:
TP311
DOI:
10. 3969 / j. issn. 1673-629X. 2020. 03. 006
摘要:
为了提高Web开发效率,开发人员常常复用已有系统框架或成熟项目中现有的代码,但因此也导致了Web应用 中总存在大量的冗余代码,冗余代码不仅影响程序的可读性和运行效率同时还会隐藏软件缺陷。 通过研究Web应用源代 码逻辑和框架的特性,提出了Web应用系统中基于源代码分析的冗余代码检测方法。 从应用程序入口开始,根据代码之 间的逻辑调用关系构建Web应用调用树,进而得到有效页面集、有效类与方法节点集;然后根据冗余检测算法检测出Web 应用系统中冗余页面、冗余处理类与处理方法。 为了评估冗余检测方法的有效性,包括漏检率与误检率,对两个JavaWeb 应用进行冗余检测并通过人工注入冗余实验验证检测的有效性。 实验结果证明,提出的冗余代码检测方法可以达到较高 的检测效率。
Abstract:
In order to improve the efficiency of Web development,developers often reuse previous code in existing system frameworks or mature projects,but it also leads to a large amount of redundant code in Web applications. Redundant code not only affects the readability and operational efficiency of the program,but also hides software defects. We propose a redundant code detection method based on source code analysis in Web application system by studying the characteristics of web application source code logic and framework. The method constructs the Web application call tree according to the logical call relationship between the codes starting from the application entry,and then obtains the effective page set,class and method node set. A redundancy detection algorithm is presented to detect the redundant pages,the redundant service classes and the processing methods. In order to evaluate the effectiveness of the redundant detection method, including the missed detection rate and the false detection rate,two Java Web applications are used as the experiment to verify the redundant code detection method proposed,and the results show that the redundant detection efficiency is high.

相似文献/References:

[1]李发英 朱海滨.基于Struts+Hibernate的Web应用的设计与实现[J].计算机技术与发展,2009,(04):91.
 LI Fa-ying,ZHU Hai-bin.Design and Realization of Web Application Based on Struts + Hibernate[J].Computer Technology and Development,2009,(03):91.
[2]王安保 蒋文蓉 朱彬 闫季鸿.Struts框架Web应用的国际化[J].计算机技术与发展,2007,(04):189.
 WANG An-bao,JIANG Wen-rong,ZHU Bin,et al.Struts Framework Internationalization in Web Application[J].Computer Technology and Development,2007,(03):189.
[3]任平红,陈矗,郑秋梅.Java中文乱码问题研究[J].计算机技术与发展,2013,(03):117.
 REN Ping-hong,CHEN Chu,ZHENG Qiu-mei.Research of Character Encoding in Java[J].Computer Technology and Development,2013,(03):117.
[4]吴红星,王浩. 基于Apriori改进算法的企业Web日志挖掘研究[J].计算机技术与发展,2015,25(04):43.
 WU Hong-xing,WANG Hao. Research on Enterprise Web Log Mining Based on Improved Apriori Algorithm[J].Computer Technology and Development,2015,25(03):43.
[5]李洋. SSM框架在Web应用开发中的设计与实现[J].计算机技术与发展,2016,26(12):190.
 LI Yang. Design and Implementation of SSM in Web Application Development[J].Computer Technology and Development,2016,26(03):190.
[6]陈春玲,张凡,余瀚.Web应用程序漏洞检测系统设计[J].计算机技术与发展,2017,27(09):101.
 CHEN Chun-ling,ZHANG Fan,YU Han. Design of Vulnerability Detection System for Web Application Program[J].Computer Technology and Development,2017,27(03):101.
[7]唐新晨. 基于认知计算的就业咨询智慧服务系统[J].计算机技术与发展,2017,27(11):166.
 TANG Xin-chen. Employment Consultation Intelligent Service System Based on Cognitive Computation[J].Computer Technology and Development,2017,27(03):166.

更新日期/Last Update: 2020-03-10