优化 json异常处理

This commit is contained in:
wuy 2019-11-04 15:30:23 +08:00
parent 20ba8bee77
commit 1fa974b8c2
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class DefaultExceptionHandler {
}
if(isJsonRequest(request)) {
log.warn("JSON请求异常", e);
return new ResponseEntity<>(map, status);
return new ResponseEntity<>(map, HttpStatus.OK);
}
else {
//获取错误页面