zno2

随笔分类 -  Spring AOP

Spring bean life cycle
摘要:一、概要 org.springframework.beans.factory.BeanFactory Bean factory implementations should support the standard bean lifecycle interfacesas far as possibl 阅读全文

posted @ 2024-02-24 18:30 zno2 阅读(61) 评论(0) 推荐(0)

@Aspect
摘要:一、简介 依赖: <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.1.9.RELEASE</version> <sco 阅读全文

posted @ 2024-02-21 10:22 zno2 阅读(59) 评论(0) 推荐(0)

spring 事务传播属性 (propagation)
摘要:propagation /ˌprɒpəˈɡeɪʃn/ 传播 资料: https://www.cnblogs.com/zno2/p/4767565.html https://docs.spring.io/spring-framework/docs/4.2.x/spring-framework-refe 阅读全文

posted @ 2023-06-01 14:24 zno2 阅读(173) 评论(0) 推荐(0)

基于继承的 MethodInterceptor 动态代理(换种写法)
摘要:net.sf.cglib.proxy.Enhancer Generates dynamic subclasses to enable method interception. This class started as a substitute for the standard Dynamic Pr 阅读全文

posted @ 2018-12-19 16:59 zno2 阅读(367) 评论(0) 推荐(0)

基于接口的 InvocationHandler 动态代理(换种写法)
摘要:InvocationHandler is the interface implemented by the invocation handler of a proxy instance. Each proxy instance has an associated invocation handler 阅读全文

posted @ 2018-12-19 16:59 zno2 阅读(294) 评论(0) 推荐(0)

spring aop 的代理工厂
摘要:参考 https://docs.spring.io/spring/docs/4.3.11.RELEASE/spring-framework-reference/htmlsingle/#aop-understanding-aop-proxies package org.springframework. 阅读全文

posted @ 2018-12-19 16:57 zno2 阅读(376) 评论(0) 推荐(0)

Spring AOP 原理
摘要:静态代理 打印结果: JDK 动态代理(基于接口) 打印: CGLIB CGLIB (Byte Code Generation Library is high level API to generate and transform Java byte code. It is used by AOP, 阅读全文

posted @ 2017-09-15 09:24 zno2 阅读(198) 评论(0) 推荐(0)

导航