@Provider public class JsonMappingExceptionMapper extends Object implements ExceptionMapper<JsonMappingException>
ExceptionMapper
to send down a "400 Bad Request"
response in the event that unmappable JSON is received.public Response toResponse(JsonMappingException exception)
toResponse
在接口中 ExceptionMapper<JsonMappingException>