mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
update: 字段名称与错误信息间缺少空格
This commit is contained in:
@@ -80,7 +80,7 @@ public class ValidationUtil {
|
||||
if (CollUtil.isNotEmpty(constraintViolations)) {
|
||||
final ConstraintViolation<Object> constraint = constraintViolations.iterator().next();
|
||||
if (StrUtil.contains(constraint.getMessageTemplate(), "jakarta.validation.constraints")) {
|
||||
throw new ValidationException(constraint.getPropertyPath() + constraint.getMessage());
|
||||
throw new ValidationException(constraint.getPropertyPath() + " " + constraint.getMessage());
|
||||
} else {
|
||||
throw new ValidationException(constraint.getMessage());
|
||||
}
|
||||
|
Reference in New Issue
Block a user