Spring attempts to find the most specific handler when we have multiple exception handlers and falls back to the default handler if there is no suitable handler. text/plain, application/xml, multipart/form-data, Try that out. My request body, So How do I pass the special/strange character to RequestBody, Change the configuration of the ObjectMapper and add, to a @Configuration annotated class to reconfigure the mapper. This is a convenient base class for @ControllerAdvice classes that wish to provide centralized exception handling across all @RequestMapping methods through @ExceptionHandler methods. Weapon damage assessment, or What hell have I unleashed? The problem is solved. [] bytes = StreamUtils.copyToByteArray(body); ResponseEntity
Nelson County Virginia Accident Reports,
Charley Webb And Jamie Lomas Different Surnames,
Articles H
httpmessagenotreadableexception custom message