I use annotation @Pattern (regexp = PHONE_REGEXP, message = "{constraints.phoneIncorrectFormat}") in many places. Is it possible to save this annotation as, for example, @PhomePattern and use it? Or maybe there is another approach to reuse the customized annotation?
meta-annotation
, likespring-boot
,jackson
. – Dean Xu Oct 25 '20 at 4:22