|
|
@ -61,7 +61,7 @@ public class RestExceptionHandler { |
|
|
|
* 自定义全局异常处理 |
|
|
|
* 自定义全局异常处理 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ExceptionHandler(value = BusinessException.class) |
|
|
|
@ExceptionHandler(value = BusinessException.class) |
|
|
|
@ResponseStatus(HttpStatus.NOT_FOUND) |
|
|
|
@ResponseStatus(HttpStatus.UNAUTHORIZED) |
|
|
|
public R businessExceptionHandler(BusinessException e) { |
|
|
|
public R businessExceptionHandler(BusinessException e) { |
|
|
|
log.error("Exception,exception:{}", e, e); |
|
|
|
log.error("Exception,exception:{}", e, e); |
|
|
|
BaseResponseCode em = e.getBaseResponseCode(); |
|
|
|
BaseResponseCode em = e.getBaseResponseCode(); |
|
|
|