public class SizeDto {
@Size(max = 5, min = 3)
private String size;
}
(In this case, I want to specify "@Size(max = 5, min = 3)" annotations using code(or xml) not "@" annotations.
I want to set @validate annotations using code(or xml).
How can I specify annotations (@Size, @Email, @CustomValidation) with codes or xml?
I don't want to solve the problem by using "AbstractProcessor" that creates a new code itself.
I just want to do it like registering a bean using xml or @Config annotations.