首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > Validate the field value of javabean whether consistent with the rules of allocation, and you can re

Validate the field value of javabean whether consistent with the rules of allocation, and you can re

资 源 简 介

Validate the field value of javabean whether consistent with the rules of allocation, and you can register your custom rules for using. 检查JavaBean的字段是否符合你配置的规则, 并且规则可任意扩展. 已升级到2.0版本!field-validator was upgrade to Version 2.0! 添加了错误消息配置功能和部分bug。目前已达到平均20万次/秒的规则校验。(不同环境,不同规则则有不同结果。) Download field-validator-2.0.zip What I can do configure your javabean field : 配置一下你的JavaBean字段 @Length(min = 5, max = 20) String code; @Chinese String chineseName; @Equals("repassword") String password; String repassword; @Num(NumberType.DOUBLE) String cash; @Regex("...") String url; and validate it. 验证一下. Map> fieldName2FailuresMap = FieldValidator.valida

文 件 列 表

field-validator-2.0-src
.classpath
.project
.settings
field-validator-2.0.jar
junit-4.8.1.jar
src
VIP VIP
0.185725s