阅读背景:

配置多个切点_winjiajia的专栏

来源:互联网 
<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" class="com.aop.CmsPopedomManageInterceptor" scope="prototype">
</bean> 
在aop中定义多个切点的时候可以用and等表达式连接<aop:config>
    <aop:aspect id="aspectIntercep



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: