Cannot resolve symbol 'validation' 问题的解决

问题描述:

问题解决:

直接到 maven repo 中找到相关的包,导入到 pom.xml 中即可:

1
2
3
4
5
6
<!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>