Is it possible to use multiple @RequestMapping annotations over a method?
@RequestMapping
Like :
@RequestMapping("/") @RequestMapping("") @RequestMapping("/welcome") public String welcomeHandler(){ return "welcome"; }
@RequestMapping has a String[] value parameter, so you should be able to specify multiple values like this:
String[]
@RequestMapping(value={"", "/", "welcome"})
1.4m articles
1.4m replys
5 comments
57.0k users