修改bug#40436

This commit is contained in:
梁琦涛
2021-10-12 14:43:09 +08:00
parent 3390af3b82
commit 515fcef3e9
@@ -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;