소스 검색

状态码修改

caixiaofeng 6 달 전
부모
커밋
da6d3c6e33
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      flow-common/flow-common-core/src/main/java/com/flow/common/core/exception/handler/BaseExceptionHandler.java

+ 1 - 1
flow-common/flow-common-core/src/main/java/com/flow/common/core/exception/handler/BaseExceptionHandler.java

@@ -74,7 +74,7 @@ public class BaseExceptionHandler {
     }
 
     @ExceptionHandler(AccessDeniedException.class)
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
+    @ResponseStatus(HttpStatus.FORBIDDEN)
     public Result accessDeniedException(AccessDeniedException e){
         e.printStackTrace();
         return Result.error(e.getMessage());