Before spring introduce @GetMapping
, there only one annotation we care about @RequestMapping
, so, this aspect works
@Before("within(aa.bb.*.rest..*) && execution(public * *(..)) && @within(org.springframework.web.bind.annotation.RestController) && @annotation(org.springframework.web.bind.annotation.RequestMapping)")
But after we can use @GetMapping
, @PostMapping
, this point not works, but these annotations have a meta annotation @RequestMapping
.
Is there any way to easily intercept all @RequestMapping
/@{Get,Post,Put,Patch,..}Mapping
?