spring-aop基本配置


<bean id="syslog" class="com.SysLog"></bean>
<bean class="syslog.Syst"></bean>

<aop:config>
<!-- 切点 -->
<aop:pointcut expression="execution(* syslog..*.*(..))" id="pointcutSys"/>

<aop:aspect id="syspct" ref="syslog">
<aop:around method="doBefore" pointcut-ref="pointcutSys"/>
</aop:aspect>
</aop:config>

posted on 2017-03-21 14:05  老邱2  阅读(78)  评论(0编辑  收藏  举报

导航