GET请求
@RequestMapping(value = "/login", method = RequestMethod.GET)
POST请求
@RequestMapping(value = "/login", method = RequestMethod.POST)
@RequestMapping(value = "/login", method = RequestMethod.GET)
@RequestMapping(value = "/login", method = RequestMethod.POST)
转载于:https://my.oschina.net/u/4107179/blog/3030531