title: SpringBoot Bean validation @NotEmpy is not Working
body: <p>I been trying to use spring <code>@NotEmpty</code> to make some input paramters in a REST api mandatory.</p>
  
  <p>So far this is what I've achieved.</p>
  
  <p>RestController</p>
  
  <pre><code>@RestController
  public class ResourceController {
  
      @Autowired
      private GestionaDatosCrmService service;
  
      @PostMapping(path = Constantes.OBTENER_DATOS_CRM)
      @ResponseStatus(HttpStatus.CREATED)
      public ObtenerDatosCrmResponse obtenerDatosCrm(@RequestHeader HttpHeaders headerRequest,
              @Valid @RequestBody ObtenerDatosCrmRequest request, HttpServletResponse headerResponse) {
          return service.obtenerDatosCrm(headerRequest, request, headerResponse);
      }
  }
  </code></pre>
  
  <p>Request Object</p>
  
  <pre><code>import javax.validation.constraints.NotEmpty;
  
  //import org.hibernate.validator.constraints.NotEmpty;
  
  public class ObtenerDatosCrmRequest {
  
      @NotEmpty(message = "Please provide a number")
      private String numSN;
      private String callID;
  
      public String getNumSN() {
          return numSN;
      }
  
      public void setNumSN(String numSN) {
          this.numSN = numSN;
      }
  
      public String getCallID() {
          return callID;
      }
  
      public void setCallID(String callID) {
          this.callID = callID;
      }
  }
  </code></pre>
  
  <p>Note this important detail I'm using <code>javax.validation.constraints.NotEmpty</code> for the <code>@NotEmpty</code> annotation but that doesn't work when I change to <code>org.hibernate.validator.constraints.NotEmpty</code> that is Deprecated the <code>@NotEmpty</code> kicks in and I get a 400 Bad request error when testing.</p>
  
  <p>Im using spring boot 2.2.2.RELEASE, is there some know bug or issue about this?</p>