Home>

I am in trouble because the import statement of the annotation does not appear.
Import statement that causes an error

import javax.validation.GroupSequence;

where no import statement appears

package sample.validation;
@GroupSequence ({GroupOrder1.class, GroupOrder2.class})
public interface GroupOrder3 {
}


You can import javax.validation with additional code in pom.xml. Sure. .

<!-add->
        <dependency>
        <groupId>javax.validation</groupId>
        <artifactId>validation-api</artifactId>
        <version>1.1.0.Final</version>
        </dependency>
        <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-validator</artifactId>
        <version>5.2.4.Final</version>
        </dependency>

Reference site