首页 | 本学科首页   官方微博 | 高级检索  
     

基于Annotation的Spring AOP系统设计
引用本文:刘荣辉,薛冰. 基于Annotation的Spring AOP系统设计[J]. 计算机应用与软件, 2009, 26(9): 18-20
作者姓名:刘荣辉  薛冰
作者单位:1. 东华大学管理学院,上海,200051;河南城建学院计算机科学与工程系,河南,平顶山,467044
2. 河南城建学院计算机科学与工程系,河南,平顶山,467044
基金项目:国家自然科学基金资助项目,上海市自然科学基金资助项目 
摘    要:简要介绍AOP(Aspect Oriented Programming)技术和Annotation技术,讨论了Spring中的AOP的两种实现.通过同一个案例阐述了在Spring中通过XML配置来实现AOP和使用了Annotation在Spring中实现AOP,比较了两种实现方式的优缺点.对在Spring使用Annotation实现AOP作了总结,从而体现了Annotation在设计系统时其简洁性和良好的扩展性.

关 键 词:Spring  XML  AOP  Annotation  

DESIGN OF SPRING AOP BASED ON ANNOTATION
Liu Ronghui,Xue Bing. DESIGN OF SPRING AOP BASED ON ANNOTATION[J]. Computer Applications and Software, 2009, 26(9): 18-20
Authors:Liu Ronghui  Xue Bing
Affiliation:School of Management;Donghua University Shanghai 200051;China;Department of Computer Science and Engineering;Henan University of Urban Construction;Pingdingshan 467044;Henan;China
Abstract:This paper introduces the aspect-oriented programming(AOP)technology and the Annotation technology in brief,and describes two realization patterns of AOP in Spring.The realisation of AOP in Spring with XML configuration and with Annotation is dwelled by the same example,the pros and cons of these two realisation modes are compared.The realisation of AOP in Spring by using Annotation is summarised,thus the simplicity and good expandability of Annotation in system designing have been embodied.
Keywords:Spring  XML  AOP  Annotation
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号