首页 开发技术 Java     /    SpringAOP实验

SpringAOP实验

上传者: qq_38662410 | 上传时间:2024/4/3 1:38:39 | 文件大小:5.06MB | 文件类型:rar
SpringAOP实验
一、实验目的1、了解AOP的概念和作用;
2、理解AOP中的相关术语;
3、了解Spring中两种动态代理方式的区别;
4、掌握基于XML和注解的AspectJ开发。
二、实验内容1、按图所示的类图结构,设计接口及其实现类,并完成另外两附加要求:(1)日志功能:在程序执行期间追踪正在发生的活动(打印出调用的方法,以及参数的参数值);
(2)验证功能:希望计算器只能处理正数的运算,当有负数参与运算时,给出提示说明。
分别使用基于XML和注解的AspectJ实现上述功能(创建两个项目)。
(图就是int加减乘除)

文件下载

资源详情

[{"title":"(41个子文件5.06MB)SpringAOP实验","children":[{"title":"说明文档.txt <span style='color:#111;'>115B</span>","children":null,"spread":false},{"title":"experiment","children":[{"title":"WebContent","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'>39B</span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"lib","children":[{"title":"spring-aop-4.3.6.RELEASE.jar <span style='color:#111;'>371.00KB</span>","children":null,"spread":false},{"title":"spring-context-4.3.6.RELEASE.jar <span style='color:#111;'>1.08MB</span>","children":null,"spread":false},{"title":"spring-expression-4.3.6.RELEASE.jar <span style='color:#111;'>257.13KB</span>","children":null,"spread":false},{"title":"spring-core-4.3.6.RELEASE.jar <span style='color:#111;'>1.07MB</span>","children":null,"spread":false},{"title":"spring-beans-4.3.6.RELEASE.jar <span style='color:#111;'>744.83KB</span>","children":null,"spread":false},{"title":"aopalliance-1.0.jar <span style='color:#111;'>4.36KB</span>","children":null,"spread":false},{"title":"junit-4.7.jar <span style='color:#111;'>226.91KB</span>","children":null,"spread":false},{"title":"commons-logging-1.2.jar <span style='color:#111;'>60.38KB</span>","children":null,"spread":false},{"title":"aspectjweaver-1.8.10.jar <span style='color:#111;'>1.84MB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'>6B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'>305B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'>482B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'>49B</span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'>567B</span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>364B</span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"lyy","children":[{"title":"experiment","children":[{"title":"ArithmeticCalculator.java <span style='color:#111;'>199B</span>","children":null,"spread":false},{"title":"ArithmeticCalculatorImpl.java <span style='color:#111;'>537B</span>","children":null,"spread":false},{"title":"MyAspect.java <span style='color:#111;'>2.04KB</span>","children":null,"spread":false},{"title":"TestXmlAspectj.java <span style='color:#111;'>876B</span>","children":null,"spread":false},{"title":"applicationContext.xml <span style='color:#111;'>808B</span>","children":null,"spread":false}],"spread":true},{"title":"experimentXml","children":[{"title":"ArithmeticCalculator.java <span style='color:#111;'>202B</span>","children":null,"spread":false},{"title":"ArithmeticCalculatorImpl.java <span style='color:#111;'>540B</span>","children":null,"spread":false},{"title":"MyAspect.java <span style='color:#111;'>1.75KB</span>","children":null,"spread":false},{"title":"TestXmlAspectj.java <span style='color:#111;'>761B</span>","children":null,"spread":false},{"title":"applicationContext.xml <span style='color:#111;'>1.27KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'>910B</span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'>1.17KB</span>","children":null,"spread":false},{"title":"build","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"lyy","children":[{"title":"experiment","children":[{"title":"ArithmeticCalculatorImpl.class <span style='color:#111;'>902B</span>","children":null,"spread":false},{"title":"TestXmlAspectj.class <span style='color:#111;'>1.10KB</span>","children":null,"spread":false},{"title":"MyAspect.class <span style='color:#111;'>2.59KB</span>","children":null,"spread":false},{"title":"applicationContext.xml <span style='color:#111;'>808B</span>","children":null,"spread":false},{"title":"ArithmeticCalculator.class <span style='color:#111;'>204B</span>","children":null,"spread":false}],"spread":true},{"title":"experimentXml","children":[{"title":"ArithmeticCalculatorImpl.class <span style='color:#111;'>911B</span>","children":null,"spread":false},{"title":"TestXmlAspectj.class <span style='color:#111;'>1.11KB</span>","children":null,"spread":false},{"title":"MyAspect.class <span style='color:#111;'>2.29KB</span>","children":null,"spread":false},{"title":"applicationContext.xml <span style='color:#111;'>1.27KB</span>","children":null,"spread":false},{"title":"ArithmeticCalculator.class <span style='color:#111;'>207B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"运行结果.png <span style='color:#111;'>11.74KB</span>","children":null,"spread":false},{"title":"实验.docx <span style='color:#111;'>27.11KB</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明