czh 2 лет назад
Родитель
Сommit
df0a859241

+ 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());
     }