* 统一异常处理类返回结果的修改
This commit is contained in:
parent
452c995868
commit
c8984f24e6
|
@ -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 {
|
||||
//获取错误页面
|
||||
|
|
Loading…
Reference in New Issue