2021
02-21
02-21
详解Java后端优雅验证参数合法性
1、首先创建一个测试实体类Person,并携带如上注解,其注解的作用描述在messagepackagecom.clickpaas.pojo;importcom.fasterxml.jackson.annotation.JsonFormat;importlombok.Data;importorg.hibernate.validator.constraints.Length;importorg.hibernate.validator.constraints.Range;importjavax.validation.constraints.*;importjava.math.BigDecimal;importjava.util.Date;importjava.util.List;/***@author方延杰...
继续阅读 >