Skip to content

Commit c5db47b

Browse files
author
pedro
committed
Merge branch 'master' into feat/qiniu-upload
2 parents 6cb5963 + 83f631c commit c5db47b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/github/talelin/merak/common/exception/RestExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public UnifyResponseVO processException(ConstraintViolationException exception,
7070
log.error("", exception);
7171
Map<String, Object> msg = new HashMap<>();
7272
exception.getConstraintViolations().forEach(constraintViolation -> {
73-
String template = constraintViolation.getMessageTemplate();
73+
String template = constraintViolation.getMessage();
7474
String path = constraintViolation.getPropertyPath().toString();
7575
msg.put(StrUtil.toUnderlineCase(path), template);
7676
});

0 commit comments

Comments
 (0)