src/main/java/com/mindskip/xzs/configuration/spring/exception/ExceptionHandle.java
@@ -75,4 +75,11 @@ logger.error(e.getMessage(), e); return new RestResponse<>(SystemCode.QuestionError.getCode(), SystemCode.QuestionError.getMessage()); } @ExceptionHandler(RuntimeException.class) @ResponseBody public RestResponse handlerRuntimeException(RuntimeException e) { logger.error(e.getMessage(), e); return new RestResponse<>(SystemCode.InnerError.getCode(), e.getMessage()); } }