读书人

配备多个切点

发布时间: 2012-11-08 08:48:11 作者: rapoo

配置多个切点

<aop:config>    <aop:aspect id="aspectIntercept" ref="popedomManagerInterceptor">        <aop:pointcut id="pointCut"expression="execution(* com.action.userinfoAction..*(..)) and execution(* com.action.memberAction..*(..))&&!execution(* get*(..))&&!execution(* set*(..))" />         <aop:before method="checkSecurity" pointcut-ref="pointCut" />     </aop:aspect></aop:config><bean id="popedomManagerInterceptor" scope="prototype"></bean> 在aop中定义多个切点的时候可以用and等表达式连接

读书人网 >软件架构设计

热点推荐