I am working on a project with Spring why do I keep getting the following error?
javax.validation.UnexpectedTypeException: No validator could be fou
As stated in problem, to solve this error you MUST use correct annotations. In above problem, @NotBlank or @NotEmpty annotation must be applied on any String field only.
@NotBlank
@NotEmpty
To validate long type field, use annotation @NotNull.
@NotNull