What configuration is needed to use annotations from javax.validation.constraints like @Size, @NotNull, etc.? Here\'s my code:
javax.validation.constraints
@Size
@NotNull
You need to add @Valid to each member variable, which was also an object that contained validation constraints.