|
@ -127,7 +127,7 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(HttpMessageNotReadableException.class)
|
|
|
@ResponseBody
|
|
|
public ErrorResponseData httpMessageNotReadable(HttpMessageNotReadableException e) {
|
|
|
log.error(">>> 参数格式传递异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), RequestTypeExceptionEnum.REQUEST_JSON_ERROR.getMessage());
|
|
|
log.error(">>> 参数格式传递异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
|
|
|
return renderJson(RequestTypeExceptionEnum.REQUEST_JSON_ERROR);
|
|
|
}
|
|
|
|
|
@ -140,7 +140,7 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(HttpMediaTypeNotSupportedException.class)
|
|
|
@ResponseBody
|
|
|
public ErrorResponseData httpMediaTypeNotSupport(HttpMediaTypeNotSupportedException e) {
|
|
|
log.error(">>> 参数格式传递异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), RequestTypeExceptionEnum.REQUEST_TYPE_IS_JSON.getMessage());
|
|
|
log.error(">>> 参数格式传递异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
|
|
|
return renderJson(RequestTypeExceptionEnum.REQUEST_TYPE_IS_JSON);
|
|
|
}
|
|
|
|