xml中配置AOP织入

<!--配置目标类-->

<bean id="target" class="com.xinzhi.target.impl.TargetImpl"/>

<!--配置切面类-->

<bean id="aspect" class="com.xinzhi.aspect.MyAspect"/>

<!--配置织入关系-->

<aop:config>

<aop:aspect ref="aspect">

<aop:before method="before" pointcut="execution(* com.xinzhi.target.impl.*.*(..))"/>

<aop:after method="after" pointcut="execution(* com.xinzhi.target.impl.*.*(..))"/>

<aop:around method="around" pointcut="execution(* com.xinzhi.target.impl.*.*(..))"/>

</aop:aspect>

</aop:config>

相关推荐
迎風吹頭髮18 小时前
Linux服务器编程实践60-双向管道:socketpair函数的实现与应用场景
linux·运维·服务器
顾漂亮18 小时前
JVM底层攻坚
java·jvm·spring
小张成长计划..18 小时前
前端6:CSS3 2D转换,CSS3动画,CSS3 3D转换
前端·3d·css3
编程岁月18 小时前
java面试-0215-HashMap有序吗?Comparable和Comparator区别?集合如何排序?
java·数据结构·面试
IT_陈寒18 小时前
Vue3性能优化实战:这7个技巧让我的应用加载速度提升50%!
前端·人工智能·后端
木井巳18 小时前
[Java数据结构与算法]详解排序算法
java·数据结构·算法·排序算法
西西学代码18 小时前
Flutter---音效模式选择器
前端·html
AORO202518 小时前
航运、应急、工业适用,AORO P1100三防平板引领行业数字化变革
运维·服务器·网络·智能手机·电脑·信息与通信
wheeldown18 小时前
【Linux】Linux 进程信号核心拆解:pending/block/handler 三张表 + signal/alarm 实战
linux·运维·服务器
TLucas18 小时前
Layui连线题编辑器组件(ConnectQuestion)
前端·编辑器·layui