修改bug#40436
This commit is contained in:
+3
-3
@@ -42,7 +42,7 @@ public class ValidUtil {
|
||||
StringBuilder msg = new StringBuilder();
|
||||
Set<ConstraintViolation<Object>> set = validator.validate(object, groups);
|
||||
for (ConstraintViolation<Object> constraintViolation : set) {
|
||||
msg.append(constraintViolation.getMessage()).append("</br>");
|
||||
msg.append(constraintViolation.getMessage()).append("<br/>");
|
||||
}
|
||||
if (StringUtils.isNotBlank(msg)) {
|
||||
throw new JeroBootException(msg.toString());
|
||||
@@ -63,7 +63,7 @@ public class ValidUtil {
|
||||
if(set != null && set.size() >0 ){
|
||||
for(ConstraintViolation<Object> constraintViolation : set){
|
||||
// 这里循环获取错误信息,可以自定义格式
|
||||
msg.append(constraintViolation.getMessage()).append("</br>");
|
||||
msg.append(constraintViolation.getMessage()).append("<br/>");
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
@@ -82,7 +82,7 @@ public class ValidUtil {
|
||||
if(set != null && set.size() > 0 ){
|
||||
for(ConstraintViolation<Object> constraintViolation : set){
|
||||
// 这里循环获取错误信息,可以自定义格式
|
||||
msg.append("第").append(count).append("行:").append(constraintViolation.getMessage()).append("</br>");
|
||||
msg.append("第").append(count).append("行:").append(constraintViolation.getMessage()).append("<br/>");
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
|
||||
Reference in New Issue
Block a user