Spring annotation mvc - request and response
- by Eqbal
I am using annotation based mvc and I am trying to get access to request and response objects using this method declaration in my controller.
@RequestMapping(method=RequestMethod.GET)
public String checkRequest(Model model, HttpServletRequest request, HttpServletResponse response)
But I get an error saying GET method not supported.
I need the request and response to pass it to another API call.