@ControllerAdvice public class RestExceptionHandler extends Object
| Constructor and Description |
|---|
RestExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
ResponseData |
paramError(org.springframework.web.bind.MethodArgumentNotValidException e) |
org.springframework.http.ResponseEntity |
valid(ValidException e) |
@ExceptionHandler(value=ValidException.class) @ResponseBody public org.springframework.http.ResponseEntity valid(ValidException e)
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseBody public ResponseData paramError(org.springframework.web.bind.MethodArgumentNotValidException e)
Copyright © 2020. All rights reserved.