如何在下面的字段中使用bean-validation @Pattern来检查第一个数字是否为“1”?
private Long registration;
发布于 2020-04-07 04:52:23
Regex bellow说它必须从1开始,并且在那之后有任何东西
@Pattern (regexp = "^1.*$") private Long registration;
https://stackoverflow.com/questions/61068766
相似问题