摘要: SpringIOC综合 SpringAOP综合 阅读全文
posted @ 2020-04-19 15:20 linglongfang 阅读(93) 评论(0) 推荐(0)
摘要: 1.SpringAOP相关术语 2.SpringAOP-xml配置AOP-xml+注解配置AOP 3.SpringAOP-xml配置AOP-纯xml配置AOP 阅读全文
posted @ 2020-04-19 15:16 linglongfang 阅读(86) 评论(0) 推荐(0)
摘要: AOP相关术语 1、目标对象target指的是需要被增强的对象,由于spring aop是通过代理模式实现,从而这个对象永远是被代理对象。2、连接点(join point)所谓连接点是指那些被拦截到的点,在spring中这些点指的是方法,因为spring只支持方法类型的连接点(目标对象中所有的方法) 阅读全文
posted @ 2020-04-19 13:20 linglongfang 阅读(405) 评论(0) 推荐(0)
摘要: 实体类如下 Calculation是我们用的类,PointCut是我们要实现通知的切面类 Calculation类如下 package com.llf.aop; import org.springframework.stereotype.Component; /** * @author linglo 阅读全文
posted @ 2020-04-19 13:18 linglongfang 阅读(211) 评论(0) 推荐(0)
摘要: 实体类如下 Calculation是我们用的类,PointCut是我们要实现通知的切面类 Calculation类如下 package com.llf.aop.xml; /** * @author linglongfang */ public class Calculation { public i 阅读全文
posted @ 2020-04-19 13:10 linglongfang 阅读(283) 评论(0) 推荐(0)