【Spring】AOP - 概念

AOP 概念

Aspect

AspectJ概念:
SpringAOP概念:

JointPoint

AspectJ概念:
SpringAOP概念:

PointCut

AspectJ概念:
SpringAOP概念:

Advise

AspectJ概念:
SpringAOP概念:

Introduction

AspectJ概念:
SpringAOP概念:

Spring AOP 是纯java实现的AOP,和AspectJ是合作关系,不是竞争关系。

SpringAOP编程模型:

注解驱动
XML配置
底层API实现

Spring AOP 编程范式

1.代理
2.判断
3.拦截器

Spring AOP 三种实现

1.JDK 动态代理 (接口)
2.CGLib - 基于类代理 - 字节码提升
3.整合AspectJ

posted @ 2025-02-19 22:38  可苦可乐  阅读(4)  评论(0)    收藏  举报