不写method,本身就是默认全部接收的
代码示例:
1234@RequestMapping(value = "/test")public Something query(HttpServletRequest request, HttpServletResponse response){ //TODO}
或者 写全了
1234@RequestMapping(value = "/test", method = { RequestMethod.GET, RequestMethod.POST })public Something query(HttpServletRequest request, HttpServletResponse response){ //TODO}