I am using a Spring controller to handle some requests. I get an exception. I processed application/json, application/xmletc. But I'm not sure about */*how it should be handled in the controller. Here is my controller code.
@RequestMapping(value = "/handle", method = RequestMethod.POST)
public @ResponseBody Response handleRequest(HttpServletRequest request, @RequestBody TestDTO testDTO, HttpServletResponse httpServletResponse) throws Exception {
}
Here is the exception:
Unexpected error: Content type '*/*;charset=UTF-8' not supported
org.springframework.web.HttpMediaTypeNotSupportedException: Content type '*/*;charset=UTF-8' not supported
Please let me know that I am missing something.
source
share