1
Q:

jpa validation string only number

@Pattern(regexp="[\\d]{6}")
1

New to Communities?

Join the community