随笔分类 -  Spring

摘要:copyPropertiespublic static void copyProperties(Object source, Object target) throws BeansException Copy the property values of the given source bean into the target bean. Note: The source and target classes do not have to match or even be derived from each other, as long as the properties match. .. 阅读全文
posted @ 2013-01-05 16:25 Onakaumi 阅读(844) 评论(0) 推荐(0)
摘要:@AssertTrue //用于boolean字段,该字段只能为true@AssertFalse//该字段的值只能为false@CreditCardNumber//对信用卡号进行一个大致的验证@DecimalMax//只能小于或等于该值@DecimalMin//只能大于或等于该值@Digits(integer=2,fraction=20)//检查是否是一种数字的整数、分数,小数位数的数字。@Email//检查是否是一个有效的email地址@Future//检查该字段的日期是否是属于将来的日期@Length(min=,max=)//检查所属的字段的长度是否在min和max之间,只能用于字符串@M 阅读全文
posted @ 2012-12-13 16:40 Onakaumi 阅读(288) 评论(0) 推荐(0)