update 优化 pr 165

This commit is contained in:
疯狂的狮子Li 2022-03-28 14:05:16 +08:00
parent 58b63a24c2
commit 95bea7f64a

View File

@ -79,7 +79,7 @@ public class GlobalExceptionHandler {
public R<Void> handleDuplicateKeyException(DuplicateKeyException e, HttpServletRequest request) {
String requestURI = request.getRequestURI();
log.error("请求地址'{}',数据库中已存在记录'{}'", requestURI, e.getMessage());
return R.fail(HttpStatus.HTTP_INTERNAL_ERROR, "数据库中已存在该记录,请联系管理员确认");
return R.fail("数据库中已存在该记录,请联系管理员确认");
}
/**