paulwong

          JSR-303 Bean Validation - @Size和@Max@Min的區(qū)別

          @Min and @Max are used for validating numeric fields which could be String(representing number), intshortbyte etc and their respective primitive wrappers.

          @Size is used to check the length constraints on the fields.

          As per documentation @Size supports StringCollectionMap and arrays while @Min and @Max supports primitives and their wrappers. See the documentation.

          posted on 2021-04-29 09:55 paulwong 閱讀(448) 評(píng)論(0)  編輯  收藏 所屬分類: J2SEBean Validation

          主站蜘蛛池模板: 凤庆县| 仪征市| 大港区| 蒙城县| 鄂尔多斯市| 邯郸县| 黔西| 广宗县| 改则县| 大化| 罗源县| 城口县| 耿马| 昔阳县| 夹江县| 灵台县| 灌云县| 苍南县| 青田县| 彭山县| 利川市| 涟源市| 临澧县| 镇赉县| 凤山市| 石渠县| 渑池县| 绥棱县| 道孚县| 绍兴市| 青神县| 搜索| 长寿区| 泉州市| 忻城县| 古田县| 沅陵县| 长沙县| 宜川县| 青河县| 静安区|