How to implement annotation based security using Spring AOP?
问题 I'm new to Spring AOP (and AOP in general), need to implement the following: @HasPermission(operation=SecurityOperation.ACTIVITY_EDIT, object="#act") public Activity updateActivity(Activity act) { ... } @HasPermission is my custom annotation, which will be used to mark all methods requiring pre-authorization. I'm using my custom implementation of security checks based on Apache Shiro. Generally, I guess that I will need to define pointcut which matches all annotated methods and also provide