title: How to check security access before validation (@Valid) in Controller?
body: <p>I am creating a Restful API with Spring Boot 2.5 and would like to know the right way to implement validation while checking roles for some routes. Also, for some routes I need to make sure that only admins can modify the resource or its owner.</p>
  <p><code>@PreAuthorize</code> seems to be the solution, but <code>@Valid</code> seems to be processed before an actual method call, otherwise known as executed before <code>@PreAuthorize</code>.</p>
  <p>See : <a href="https://stackoverflow.com/questions/22780668/how-to-check-security-acess-secured-or-preauthorize-before-validation-vali">How to check security acess (@Secured or @PreAuthorize) before validation (@Valid) in my Controller?</a></p>
  <p>Is this really the only available and <strong>clean</strong> solution to make a Restful API with both validation and roles with Spring Boot &amp; Spring Security?</p>