* 统一异常处理类返回结果的修改

This commit is contained in:
yaojianfeng 2019-10-15 16:44:12 +08:00
parent 452c995868
commit c8984f24e6
1 changed files with 1 additions and 1 deletions

View File

@ -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 {
//获取错误页面