How to intercept meta annotations (annotated annotations) in Spring AOP
问题 Suppose I want to find all classes annotated with @Controller, I would create this pointcut: @Pointcut("within(@org.springframework.stereotype.Controller *)") public void controllerPointcut() {} But those controllers annotated with @RestController can not be found. Since RestController itself is annoatated with @Controller. Any idea on how to find classes annotated either with @Controller or @RestController without having to create two Pointcuts ? ===== edit ==== My real intention here is as