I can easily find all mentions of some annotation in my project using SSR (structural search and replace). For example I have following spring based code:
class DashboardController {
@RequestMapping("/dashboard")
public void doDashboard() {
[...]
}
}
If I search by pattern org.springframework.web.bind.annotation.RequestMapping
than I will find my code. But what if I want to find methods annotated with parametrized annotation, so find only method with annotations @RequestMapping
for "/dashboard" url?
I can simply search by @RequestMapping("/dashboard")
string, but annotation can be written in several ways:
@RequestMapping("/dashboard")
@RequestMapping(value = "/dashboard", method = {RequestMethod.POST})
@RequestMapping(headers = "content-type=application/*", value = "/dashboard")
etc.