当前位置:主页 > 科技论文 > 软件论文 >

基于SSH2框架的数据日志插件研究

发布时间:2018-06-07 11:09

  本文选题:SSH2 + Hibernate ; 参考:《哈尔滨工程大学》2016年硕士论文


【摘要】:随着SSH2框架越来越受到程序员的青睐,并且已经成为当今大型应用软件的首选WEB技术。日志记录功能是应用系统不可缺少的一部分,但现有的日志插件不仅与应用程序处于紧耦合状态,而且兼容性较差。同时,市场上缺少针对数据信息的日志插件。所以,开发一款与业务逻辑完全解耦、执行速度快、配置简便的数据日志插件是必不可少的趋势。本课题通过对国内外市场上存在的日志记录框架的分析和研究,在此基础之上,针对将数据日志记录动作与业务逻辑解耦,良好的兼容性,高效的执行性能这些具体需求,创建了数据日志插件应用在SSH2框架上的功能架构,并提出了一个基于SSH2框架开发数据日志插件的研究方案。该方案利用定制Hibernate监听器方式完成了对底层封装的add、update、delete方法拦截,然后使用Spring Aop面向切面编程技术实现获取数据信息的功能,以及提出利用Spring对注解类技术的支持,完成对方法体中原生SQL语句的识别及信息获取,并通过在注解类的输入流中增加双缓冲机制,提高单词分析器的工作效率。在完成数据日志配置方案之后,提出在应用系统加载的初期,通过自定义的初始化类以及单例类实现将用户配置文件读取到内存中,避免了耗时的I/O操作。此外,本课题还提出使用缓冲池技术解决写日志文件时可能遇到的多线程同步问题。最后,在实际的应用系统中应用数据日志插件,通过与已有日志框架的对比分析,验证了数据日志插件的性能优势,并总结了数据日志插件具有的特性。在数据日志插件的实际应用过程中,它具有业务逻辑无关和日志记录逻辑独立两方面的突出优点。前者是指将日志记录与业务逻辑完全解耦,后者指插件的功能独立、针对性强。此外,数据日志插件的引用及配置方法简单,易于使用。
[Abstract]:With the increasing popularity of the SSH2 framework, it has become the preferred WEB technology for large applications. Logging is an indispensable part of the application system, but the existing logging plug-in is not only tightly coupled with the application, but also has poor compatibility. At the same time, there is a lack of logging plug-ins for data information on the market. Therefore, the development of a completely decoupled business logic, fast execution, easy configuration of data logging plug-in is an essential trend. Based on the analysis and research of the logging framework in the domestic and foreign markets, this paper aims at the specific requirements of decoupling the data logging actions from the business logic, good compatibility, and efficient execution performance. The functional framework of data log plug-in applied on SSH2 framework is established, and a research scheme of developing data log plug-in based on SSH2 framework is proposed. This scheme uses the custom Hibernate listener to intercept the add-on update delete method of the underlying encapsulation, then realizes the function of obtaining data information by using the Spring Aop face oriented programming technology, and proposes the support of the annotated class technology by using Spring. The recognition and information acquisition of the native SQL statements in the body of the method are completed, and the efficiency of the word analyzer is improved by adding a double buffer mechanism to the input stream of the annotation class. After the data log configuration scheme is completed, it is proposed that in the initial stage of application system loading, the user profile can be read into memory through custom initialization class and singleton class to avoid the time-consuming I / O operation. In addition, this paper also proposes to use buffer pool technology to solve the problem of multithread synchronization when writing log files. Finally, the data log plug-in is applied in the practical application system. The performance advantages of the data log plug-in are verified by comparing the data log plug-in with the existing log framework, and the characteristics of the data log plug-in are summarized. In the practical application of data log plug-in, it has two outstanding advantages: business logic independence and logging logic independence. The former refers to the complete decoupling of logging and business logic, while the latter refers to the independent function and strong pertinence of the plug-in. In addition, the data log plug-in reference and configuration method is simple, easy to use.
【学位授予单位】:哈尔滨工程大学
【学位级别】:硕士
【学位授予年份】:2016
【分类号】:TP311.52

【参考文献】

相关期刊论文 前10条

1 李娟;;Java多线程同步机制研究分析[J];中国科教创新导刊;2014年07期

2 王书怀;邢建春;李决龙;杨启亮;周磊;;AOP技术在管理信息系统中的应用研究[J];计算机应用与软件;2012年06期

3 陈益;童亚拉;杨晓艳;;Java多线程同步机制的应用分析[J];智能计算机与应用;2012年03期

4 路勇;;Java多线程同步问题分析[J];软件;2012年04期

5 张步忠;;Java语言中的线程同步互斥研究[J];安庆师范学院学报(自然科学版);2011年04期

6 李洋;孙永维;许冰;王英双;;基于Ajax,Struts,Hibernate和Spring的J2EE架构[J];吉林大学学报(信息科学版);2011年06期

7 支艳强;谢文阁;王丽丽;;基于JDK的Java集成开发环境的设计与实现[J];大众科技;2011年09期

8 鲍陈;汪千松;;基于AOP的实时系统关注点分离方法[J];计算机工程与设计;2011年09期

9 吴志峰;鞠凤娟;;SLF4J框架集成日志系统的应用研究[J];信息通信;2011年04期

10 张勇;;基于Java多线程同步的安全性研究[J];河北工程大学学报(自然科学版);2011年02期

相关硕士学位论文 前10条

1 喻欣;融合SSH2组合框架信息化管理系统的研究与实现[D];武汉科技大学;2013年

2 郑清;基于JSF和EJB3.0的Web应用研究[D];成都理工大学;2013年

3 肖露;Spring框架研究与应用[D];长沙理工大学;2011年

4 王春超;基于J2EE架构的SSH组合框架的研究[D];长春理工大学;2010年

5 李国辉;基于AOP的松耦合系统性能分析方法的研究[D];华南理工大学;2010年

6 李峰;基于Struts和Hibernate框架的内容管理系统的设计与实现[D];太原理工大学;2010年

7 康乃元;基于AOP的集成测试方法研究及其在信息科研系统持续集成中的应用[D];中国海洋大学;2010年

8 贺亮;软件设计模式研究及应用[D];长沙理工大学;2009年

9 柏银;基于Struts+Spring+Hibernate多架构的性能分析系统[D];四川大学;2006年

10 隋国辉;.NET平台AOP框架应用研究[D];四川大学;2005年



本文编号:1990963

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/1990963.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户87f46***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com