spring权限验证

来源:互联网 发布:知乎注册必须手机号 编辑:程序博客网 时间:2024/04/29 04:05

<bean id="authInterceptor"
  class="core.AuthPermission">
  </bean>


  <aop:config>
  <aop:aspect id="authI" ref="authInterceptor">
  <aop:pointcut id="authMethod"
  expression="execution (* service..*.*(..)) and not execution
  (*service.user.service.impl.UserServiceImpl.login(..))" />
  <aop:around pointcut-ref="authMethod" method="auth" />
  </aop:aspect>
  </aop:config>

原创粉丝点击