From c8984f24e6c279dc83f952d2e8101268409f8792 Mon Sep 17 00:00:00 2001 From: yaojianfeng <281550336@qq.com> Date: Tue, 15 Oct 2019 16:44:12 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E7=BB=9F=E4=B8=80=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=B1=BB=E8=BF=94=E5=9B=9E=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/diboot/core/handle/DefaultExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { //获取错误页面