I just began my spring boot yestoday, but cannot resolve symbol 'NotBlank'. I tried to restart , reimport, can someone tell me how to solve this problem plz.
Adding spring-boot-starter-validation
to your project will likely fix this problem.
with Maven:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
with Gradle:
dependencies {
...
implementation 'org.springframework.boot:spring-boot-starter-validation'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With