优化 json异常处理
This commit is contained in:
parent
20ba8bee77
commit
1fa974b8c2
|
@ -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 {
|
||||
//获取错误页面
|
||||
|
|
Loading…
Reference in New Issue