摘要: SpringBoot注解验证参数 废话不多说,直接上表格说明: 注解 作用类型 解释 @NotNull 任何类型 属性不能为null @NotEmpty 集合 集合不能为null,且size大于0 @NotBlanck 字符串、字符 字符类不能为null,且去掉空格之后长度大于0 @AssertTr 阅读全文
posted @ 2020-01-02 13:30 洞玄巅峰 阅读(1629) 评论(0) 推荐(0) 编辑