title: why isn't @NotBlank not showing up as an import
body: <p>Having an issue with my code</p>
  <p><a href="https://i.stack.imgur.com/udDE0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/udDE0.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/JTvAi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JTvAi.png" alt="enter image description here" /></a>
  package com.example.demoSpring.student;</p>
  <pre><code>import com.fasterxml.jackson.annotation.JsonProperty;
  import org.springframework.lang.NonNull;
  
  **import javax.validation.constraints.NotBlank;**
  import java.util.UUID;
  
  public class Students {
      private final UUID studentId;
  
      **@NotBlank**
      private final String firstName;
  
      **@NotBlank**
      private final String lastName;
  
      **@NotBlank**
      private final String email;
  
      @NonNull
      private final Gender gender;
  
      public Students(@JsonProperty(&quot;studentId&quot;) UUID studentId,
                      @JsonProperty(&quot;firstName&quot;) String firstName,
                      @JsonProperty(&quot;lastName&quot;) String lastName,
                      @JsonProperty(&quot;email&quot;) String email,
                      @JsonProperty(&quot;gender&quot;) Gender gender) {
          this.studentId = studentId;
          this.firstName = firstName;
          this.lastName = lastName;
          this.email = email;
          this.gender = gender;
      }
  
      public UUID getStudentId() {
          return studentId;
      }
  
      public String getFirstName() {
          return firstName;
      }
  
      public String getLastName() {
          return lastName;
      }
  
      public String getEmail() {
          return email;
      }
  
      public Gender getGender() {
          return gender;
      }
  
      @Override
      public String toString() {
          return &quot;Students{&quot; +
                  &quot;studentId=&quot; + studentId +
                  &quot;, firstName='&quot; + firstName + '\'' +
                  &quot;, lastName='&quot; + lastName + '\'' +
                  &quot;, email='&quot; + email + '\'' +
                  &quot;, gender=&quot; + gender +
                  '}';
      }
  
      enum Gender{
          MALE,FEMALE
      }
  
  }
  </code></pre>
  <p>It's telling me that import javaz.validation.contraints.NotBlank doesn't exist, How do I install these on my IntelliJ</p>
  <p>Im working on a project and I been having issues with this any import would be helpful, I'm using postman.
  it just every time I check import javax.<strong>validation</strong>.constraints.NotBlank; is red I check options add dependency I get no result maven when I click find jar on web cant find it. How can I import this into my IntelliJ program?</p>
  <p>Also here is my pom.xml code</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.3.0.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;demoSpring&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;demoSpring&lt;/name&gt;
      &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;11&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jdbc&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.flywaydb&lt;/groupId&gt;
              &lt;artifactId&gt;flyway-core&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.junit.vintage&lt;/groupId&gt;
                      &lt;artifactId&gt;junit-vintage-engine&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.assertj/assertj-core --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.assertj&lt;/groupId&gt;
              &lt;artifactId&gt;assertj-core&lt;/artifactId&gt;
              &lt;version&gt;3.16.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
              &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
              &lt;version&gt;3.4.5&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.example&lt;/groupId&gt;
              &lt;artifactId&gt;demoSpring&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-validator&lt;/groupId&gt;
              &lt;artifactId&gt;commons-validator&lt;/artifactId&gt;
              &lt;version&gt;1.3.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  <hr />
  <p>I added this</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;**javax.validation**&lt;/groupId&gt;
      &lt;artifactId&gt;**validation-api**&lt;/artifactId&gt;
      &lt;version&gt;**2.0.1.Final**&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>but the bold area is red dependency isn't found for these
  <a href="https://i.stack.imgur.com/vB5H1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vB5H1.png" alt="enter image description here" /></a></p>
  <p>Im still getting an error when I try to input dependency</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.validation&lt;/groupId&gt;
      &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
      &lt;version&gt;2.0.1.Final&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>