I have the following code
import javax.validation.constraints.NotBlank;
...
@NotBlank(message="Not Blank")
private String thing;
When I try to run I get
No validator could be found for constraint 'javax.validation.constraints.NotBlank' validating type 'java.lang.String'
How do I use NotBlank annotation with a string?
Java 8