Spring AOP开发

--------------------siwuxie095

   

   

   

   

   

   

   

   

Spring AOP 开发

   

   

1、在 Spring 中进行 AOP 开发,一般使用 AspectJ 实现

   

(1)AspectJ 是一个面向切面的框架,它不是 Spring 一部分,

只是和 Spring 一起使用,进行 AOP 开发罢了

   

(2)Spring 2.0 以后新增了对 AspectJ 的支持

   

   

   

2、使用 AspectJ 实现 AOP 有两种方式:

   

(1)基于 AspectJ 的 XML 方式

   

(2)基于 AspectJ 的注解方式

   

   

   

   

   

   

   

   

   

【made by siwuxie095】

原文地址:https://www.cnblogs.com/siwuxie095/p/7409960.html