| 构造器和说明 |
|---|
GlobalExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
Map |
handlerArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException e)
参数验证
|
Map |
handlerRuntimeException(Exception e)
runtime exception
|
@ExceptionHandler(value=java.lang.RuntimeException.class) public Map handlerRuntimeException(Exception e)
e - @ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public Map handlerArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException e)
e - Copyright © 2019 GTMAP. All rights reserved.