Yanming Zhou opened SPR-14439 and commented

Spring supports @GetMapping and other @MethodMapping to replace @RequestMapping seamlessly since 4.3, but there is a problem with AOP pointcut.

@Before("execution(public * *(..)) and @annotation(requestMapping)")
public void before(JoinPoint jp, RequestMapping requestMapping)  {
      ...
}

It works fine with @RequestMapping but failed with @GetMapping.


Affects: 4.3.1

Comment From: spring-projects-issues

Yanming Zhou commented

ping

Comment From: jhoeller

Since the @annotation is part of AspectJ's pointcut language, I'm afraid there isn't anything that we can do about this from Spring's side.