this error I got during GET method implementation
java.io.EOFException: No content to map to Object due to end of input
my controller
@RequestMapping(value = "/Login.htm", method = RequestMethod.GET,consumes="application/json",produces="application/json")
public @ResponseBody Map<String, Object> Login(HttpServletRequest request,@RequestBody UserInput user) {
Map<String, Object> modelMap = new HashMap<String, Object>(1);
modelMap.put("status",userManagerDAO.LoginUser(user));
return modelMap;
}
Its working with post but not working with get method.
please help me to make this method get my input json.
{
"cusId":1,
"loginId" : "123ASDF",
"password": "test123"
}