spring aop xml配置
<!--用户权限控制aop-->
<bean id="userPermissions" class="com.base.core.aop.UserPermissionsAspect"/>
<aop:config>
<aop:aspect id="userPermissions-aspect" ref="userPermissions">
<aop:pointcut id="UserPermissionMgr"
expression="(execution(public * com.base.core.web.*Controller.*(..)))&&(@annotation(com.base.core.oauth.UserPermissions))"/>
<aop:before method="doBefore" pointcut-ref="UserPermissionMgr"/>
</aop:aspect>
</aop:config>
<!--用户权限控制aop END-->
其中
&&
在xml中代表&&,&&在xml中不合法需要转换