diff --git a/diboot-core/src/main/java/com/diboot/core/handle/DefaultExceptionHandler.java b/diboot-core/src/main/java/com/diboot/core/handle/DefaultExceptionHandler.java index 188ffa3..7eb37cb 100644 --- a/diboot-core/src/main/java/com/diboot/core/handle/DefaultExceptionHandler.java +++ b/diboot-core/src/main/java/com/diboot/core/handle/DefaultExceptionHandler.java @@ -47,7 +47,7 @@ public class DefaultExceptionHandler { } if(isJsonRequest(request)) { log.warn("JSON请求异常", e); - return new ResponseEntity<>(map, status); + return new ResponseEntity<>(map, HttpStatus.OK); } else { //获取错误页面