title: Spring boot validation annotations @Valid and @NotBlank not working
body: <p>Given below is my main controller from which I am calling the <strong>getPDFDetails</strong> method.</p>
  <pre><code>@RequestMapping(value=PATH_PRINT_CONTRACTS, method=RequestMethod.POST)
      public ResponseEntity&lt;?&gt; printContracts(@RequestBody final UpdatePrintContracts updatePrintContracts) throws Exception {
      
          System.out.println(&quot;contracts value is &quot;+ updatePrintContracts);
          
          Integer cancellationReasons = service.getPDFDetails(updatePrintContracts);
          
          System.out.println(&quot;success!&quot;);
          
          return ResponseEntity.ok(cancellationReasons);
      }   
  </code></pre>
  <p>Below is the <strong>UpdatePrintContracts</strong> class where I have defined all the variables with validation annotations and corresponding getter/setter methods.</p>
  <pre><code>public class UpdatePrintContracts {
      
      @Valid
      @NotBlank
      @Pattern(regexp = &quot;\\p{Alnum}{1,30}&quot;)
      String isReprint;
      
      @Valid
      @NotBlank
      Integer dealerId;
      
      @Valid
      @NotBlank
      @Pattern(regexp = &quot;\\p{Alnum}{1,30}&quot;)
      String includeSignatureCoordinates;
      
      @Valid
      @NotBlank
      java.util.List&lt;Integer&gt; contractNumbers;
  
      public String getIsReprint() {
          return isReprint;
      }
  
      public void setIsReprint(String isReprint) {
          this.isReprint = isReprint;
      }
  
      public Integer getDealerId() {
          return dealerId;
      }
  
      public void setDealerId(Integer dealerId) {
          this.dealerId = dealerId;
      }
  
      public String getIncludeSignatureCoordinates() {
          return includeSignatureCoordinates;
      }
  
      public void setIncludeSignatureCoordinates(String includeSignatureCoordinates) {
          this.includeSignatureCoordinates = includeSignatureCoordinates;
      }
  
      public java.util.List&lt;Integer&gt; getContractNumbers() {
          return contractNumbers;
      }
  
      public void setContractNumbers(java.util.List&lt;Integer&gt; contractNumbers) {
          this.contractNumbers = contractNumbers;
      }
      
  }
  </code></pre>
  <p>I am trying to run the application as a Spring Boot app by right clicking on the project (Run As) and passing blank values for variables <strong>isReprint</strong> and <strong>includeSignatureCoordinates</strong> through Soap UI. However the validation doesn't seem to work and is not throwing any validation error in Soap UI. What am I missing? Any help is appreciated!</p>