Adding bean validation dependency jar broke my project & tests

Viewed 46

I took over a Spring Boot project that had a lot of POJO fields annotated with @NotBlank (from javax.validation.constraints).

I added validations to my new POJO and added a dependency to my pom.xml which was not there - org.springframework.boot => spring-boot-starter-validation

Well, pulling in that dependency broke a bunch of tests for other classes that had fields annotated with @Notblank

So my question is: Does @NotBlank have any effect if that validation dependency jar is not pulled in?

The Spring Boot version is 2.6.6 (Spring version 5.3.18)

0 Answers
Related