摘要:
applicationContext.xml <!--方法三:注解支持--> <bean id="point" class="com.shao.diy.PointCut"/> <aop:aspectj-autoproxy/> package com.shao.diy; import org.aspe 阅读全文
posted @ 2021-10-26 10:18
蘑菇王国大聪明
阅读(46)
评论(0)
推荐(0)
摘要:
applicationContext.xml <!--方法二 自定义类--> <bean id="diyPointCut" class="com.shao.diy.DiyPointCut"/> <aop:config> <aop:aspect ref="diyPointCut" > <!--切入点- 阅读全文
posted @ 2021-10-26 09:56
蘑菇王国大聪明
阅读(26)
评论(0)
推荐(0)
摘要:
1.创建相应的类 2.代码 service沿用前面的 增加两个log Log.java package com.shao.log; import org.springframework.aop.MethodBeforeAdvice; import java.lang.reflect.Method; 阅读全文
posted @ 2021-10-26 09:38
蘑菇王国大聪明
阅读(44)
评论(0)
推荐(0)

浙公网安备 33010602011771号