perf: 优化实体类中校验注解的提示信息

This commit is contained in:
zenghuafan
2023-01-17 14:24:42 +08:00
parent 10f88f5458
commit d8062087c7
10 changed files with 29 additions and 29 deletions

View File

@ -32,7 +32,7 @@ public class SysNotice extends BaseEntity {
*/
@Xss(message = "公告标题不能包含脚本字符")
@NotBlank(message = "公告标题不能为空")
@Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
@Size(min = 0, max = 50, message = "公告标题不能超过{max}个字符")
private String noticeTitle;
/**