소스 검색

暂时做处理

czh 2 년 전
부모
커밋
df0a859241
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      sckw-common/sckw-common-core/src/main/java/com/sckw/core/exception/GlobalSystemExceptionHandler.java

+ 2 - 2
sckw-common/sckw-common-core/src/main/java/com/sckw/core/exception/GlobalSystemExceptionHandler.java

@@ -22,9 +22,9 @@ import java.util.Set;
 @Configuration
 public class GlobalSystemExceptionHandler {
 
-    @ExceptionHandler(value = SystemException.class)
+    @ExceptionHandler(value = {SystemException.class, RuntimeException.class})
     @ResponseBody
-    public HttpResult handlerRuntimeException(SystemException e) {
+    public HttpResult handlerSystemException(SystemException e) {
         return HttpResult.error(e.getCode(), e.getMessage());
     }