spring AOP 配置多个pointCut

电玩女神 2022-08-10 11:50 132阅读 0赞
  1. <aop:config>
  2. <aop:aspect id="aspectIntercept" ref="popedomManagerInterceptor">
  3. <aop:pointcut id="pointCut"
  4. expression="execution(* com.action.userinfoAction..*(..))and execution(* com.action.memberAction..*(..)) and !execution(* get*(..)) and !execution(* set*(..))" />
  5. <aop:before method="checkSecurity" pointcut-ref="pointCut" />
  6. </aop:aspect>
  7. </aop:config>
  8. <bean id="popedomManagerInterceptor" class="com.aop.CmsPopedomManageInterceptor" scope="prototype">
  9. </bean>

发表评论

表情:
评论列表 (有 0 条评论,132人围观)

还没有评论,来说两句吧...

相关阅读