修改msg 信息统一处理
This commit is contained in:
parent
39c67616fe
commit
f3de388e49
|
|
@ -147,7 +147,7 @@ public class DefaultExceptionAdvice {
|
|||
@ExceptionHandler(MsgException.class)
|
||||
public ResponseEntity handleException(MsgException e) {
|
||||
LOGGER.error("业务异常", e);
|
||||
Result response = Result.failure(DefaultError.BUSINESS_ERROR);
|
||||
Result response = Result.fail(e.getMessage());
|
||||
response.setMsg(e.getMessage());
|
||||
return new ResponseEntity<>(response, HttpStatus.OK);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue