Home Validation dependency issues
Post
Cancel

Validation dependency issues

Situation

Can not use Valid and Length annotation

image

Pom.xml

image

Solution

Add dependency to Pom.xml
In IntelliJ, View > Tool Windows > Maven or ‘Maven’ in right-side panel, click refresh icon
image image

Error display disappears
image

Reasons for the error

The class could not be imported because there was no dependency in Pom.xml



Ref:
Spring Developing JPA-based web applications with Spring - keesun.b

This post is licensed under CC BY 4.0 by the author.