<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>
本文介绍了一种使用AOP配置权限拦截的方法,通过定义切入点表达式来排除特定的服务方法(如用户登录方法),并围绕该切入点实现鉴权逻辑。
1376

被折叠的 条评论
为什么被折叠?



