spring:aop
whileTrueIT
这个作者很懒,什么都没留下…
展开
-
动态代理 - JDK动态代理 & CGLIB动态代理
一:JDK动态代理1,JDK动态代理类使用步骤1,定义一个接口及其实现类; 2,自定义 InvocationHandler 并重写invoke方法,在 invoke 方法中我们会调用原生方法(被代理类的方法)并自定义一些处理逻辑; 3,通过 Proxy.newProxyInstance(ClassLoader loader,Class<?>[] interfaces,InvocationHandler h) 方法创建代理对象;2,创建接口及实现类接口public interf原创 2022-01-04 12:45:46 · 137 阅读 · 0 评论 -
【Aop的基于xml配置】基于XML的AOP详情
基于XML的AOP[1]加入jar包com.springsource.net.sf.cglib-2.2.0.jarcom.springsource.org.aopalliance-1.0.0.jarcom.springsource.org.aspectj.weaver-1.6.8.RELEASE.jarcommons-logging-1.1.3.jarhamcrest-core-1.3.jarjunit-4.12.jarspring-aop-4.0.0.RELEASE.jarspring-原创 2021-01-05 19:42:43 · 65 阅读 · 0 评论 -
基于注解的Spring AOP
基于注解的Spring AOP[1] 导入jar包com.springsource.net.sf.cglib-2.2.0.jarcom.springsource.org.aopalliance-1.0.0.jarcom.springsource.org.aspectj.weaver-1.6.8.RELEASE.jarcommons-logging-1.1.3.jar hamcrest-core-1.3.jar junit-4.12.jarspring-aop-4.0.0.RELEASE.jar原创 2021-01-05 19:34:57 · 99 阅读 · 0 评论