How to create a default method in SpringMVC using annotations?
问题 I can't find a solution to this, and it's driving me crazy. I have @Controller mapped that responds to several methods using @RequestMapping. I'd like to tag one of those methods as default when nothing more specific is specified. For example: @Controller @RequestMapping("/user/*") public class UserController { @RequestMapping("login") public String login( MapModel model ) {} @RequestMapping("logout") public String logout( MapModel model ) {} @RequestMapping("authenticate") public String