Spring实现AOP的4种方式

时间:2018-11-14 12:14:56
【文件属性】:
文件名称:Spring实现AOP的4种方式
文件大小:4.04MB
文件格式:ZIP
更新时间:2018-11-14 12:14:56
AOP Spring AOP的配置 代理 Spring中实现AOP有很多方式,这里总结了四种,有基于代理的实现方式,也有基于AspectJ 的注解方式,还有基于AOP标签的配置
【文件预览】:
AOPTest
----bin()
--------applicationContext2.xml(1KB)
--------log4j.properties(781B)
--------applicationContext1.xml(2KB)
--------com()
--------applicationContext4.xml(975B)
--------applicationContext3.xml(1KB)
----.settings()
--------org.eclipse.jdt.core.prefs(598B)
----src()
--------applicationContext2.xml(1KB)
--------log4j.properties(781B)
--------applicationContext1.xml(2KB)
--------com()
--------applicationContext4.xml(975B)
--------applicationContext3.xml(1KB)
----.project(383B)
----.classpath(2KB)
----lib()
--------slf4j-api-1.6.0.jar(25KB)
--------org.springframework.context-3.0.5.RELEASE.jar(653KB)
--------aspectjrt-1.8.4.jar(115KB)
--------log4j-1.2.12.jar(350KB)
--------org.springframework.beans-3.0.5.RELEASE.jar(542KB)
--------org.springframework.expression-3.0.5.RELEASE.jar(166KB)
--------commons-logging-1.6.0.jar(17KB)
--------org.springframework.asm-3.0.5.RELEASE.jar(52KB)
--------com.springsource.org.aopalliance-1.0.0.jar(5KB)
--------org.springframework.core-3.0.5.RELEASE.jar(373KB)
--------aspectjweaver-1.8.4.jar(1.78MB)
--------org.springframework.aop-3.0.5.RELEASE.jar(314KB)
--------org.springframework.context.support-3.0.5.RELEASE.jar(99KB)
--------org.springframework.aspects-3.0.5.RELEASE.jar(35KB)
--------slf4j-log4j12-1.6.0.jar(10KB)

网友评论

  • 第四种方式没跑成功,需要添加cglib的jar包,添加了cglib-nodep-2.2.3,测试通过