title: How to make validations work with @RequestParam
body: <p>Given <code>Spring Boot 2.6.3</code>, <code>Hibernate validator 6.2.0.Final</code>, after running the code below:</p>
  <pre><code>import org.springframework.validation.annotation.Validated;
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  import org.springframework.web.bind.annotation.RestController;
  import javax.validation.constraints.Min;
  
  @RestController
  @Validated
  public class TestController {
      @GetMapping(&quot;/test&quot;)
      public Integer test( @Min(10) @RequestParam Integer val) {
          return val;
      }
  }
  </code></pre>
  <p>If I call http://localhost:8080/test?val=0 , it returns 0 and it seems it ignores <code>@Min(10)</code> part.</p>
  <p>Does anybody know whether it is possible to validate <code>@RequestParam</code> parameters?</p>