首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

配备多个切点

2012-11-08 
配置多个切点aop:configaop:aspect idaspectIntercept refpopedomManagerInterceptoraop:point

配置多个切点

<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等表达式连接

热点排行