What configuration is needed to use annotations from javax.validation.constraints like @Size, @NotNull, etc.? Here\'s my code:
javax.validation.constraints
@Size
@NotNull
In my case, I was using spring boot version 2.3.0. When I changed my maven dependency to use 2.1.3 it worked.
org.springframework.boot spring-boot-starter-parent 2.1.3.RELEASE javax.validation validation-api