使用BeanUtils.getProperty()时出现未知属性错误

您所在的位置:网站首页 3dmark基准运行过程中出现未知错误 使用BeanUtils.getProperty()时出现未知属性错误

使用BeanUtils.getProperty()时出现未知属性错误

#使用BeanUtils.getProperty()时出现未知属性错误| 来源: 网络整理| 查看: 265

这是我的课。

@DateRange.List({ @DateRange(start = "startDate", end = "endDate", message = "Start date should be earlier than end date.") }) public class MyClass { @NotNull @Pattern(regexp = DateConstants.DATE_FORMAT_REGEX, message = "Invalid date format.") public String startDate; @NotNull @Pattern(regexp = DateConstants.DATE_FORMAT_REGEX, message = "Invalid date format.") public String endDate; }

我添加了一个@DateRange注释,声明如下。

@Target({TYPE, ANNOTATION_TYPE}) @Retention(RUNTIME) @Constraint(validatedBy = DateRangeValidator.class) @Documented public @interface DateRange { String message() default "{constraints.daterange}"; Class[] groups() default {}; Class


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3