String类型
@NotBlank(message = "carTrailerCountryCode不能为空")
@Length(max = 2)
private String carTrailerCountryCode;
Integer 类型
@NotNull(message = "companyBranch不能为空")
@Max(6)
private Integer companyBranch;
Data类型
@NotNull(message = "loadDate不能为空")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
private Date loadDate;
BigDecimal 类型
@NotNull (message = "quantity不能为空")
@Digits(integer = 14, fraction = 3)
private BigDecimal quantity;
List类型
@NotEmpty(message = "testList不能为空")
private List<Long> testList;