How to use multiple @RequestMapping annotations in spring?

Is it possible to use multiple @RequestMapping annotations over a method?

Like :

@RequestMapping("https://stackoverflow.com/")
@RequestMapping("")
@RequestMapping("/welcome")
public String welcomeHandler(){
  return "welcome";
}

7 Answers
7

Leave a Comment