title: Custom web filter for specific controllers
body: <p>Help me please, or show other ways to resolve this problem.</p>
  
  <pre><code>@RestController
  @RequestMapping("/users")
  public class UserController {
  
      @RequestMapping("/login")
      public String logIn() {
          return "";
      }
  
      @RequestMapping("/getUserData")
      @FilterThisRequest
      public String getUserData(@PathVariable Long userId) {
          return user;
      }
  }
  </code></pre>
  
  <p>And I have <code>AuthFilter extends GenericFilterBean</code> which makes a certain logic. How can I make that the filter execute only before methods which have <code>@FilterThisRequest</code>? Or there are better practices to resolve this problem?</p>