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 閱讀(450) 評論(0)  編輯  收藏 所屬分類: J2SE 、Bean Validation

          主站蜘蛛池模板: 射洪县| 镇宁| 乌兰浩特市| 个旧市| 灯塔市| 克东县| 孝昌县| 鄱阳县| 建瓯市| 会宁县| 天全县| 祁连县| 昌乐县| 庆城县| 利辛县| 曲水县| 泽州县| 遂溪县| 冕宁县| 广灵县| 河北区| 化州市| 沙坪坝区| 西丰县| 晋中市| 东辽县| 双鸭山市| 绥宁县| 遵义市| 芜湖县| 新野县| 佳木斯市| 三江| 图片| 哈巴河县| 鄯善县| 湘乡市| 奈曼旗| 惠水县| 高碑店市| 米泉市|