错误编码返回更新

master
cheney 2 years ago
parent 81d1a277b8
commit e6b8893c28
  1. 2
      src/main/java/com/huoran/iasf/common/exception/handler/RestExceptionHandler.java

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

Loading…
Cancel
Save