title: How can I add a filter class in Spring Boot?
body: <p>Is there any annotation for a <code>Filter</code> class (for web applications) in Spring Boot? Perhaps <code>@Filter</code>?</p>
  <p>I want to add a custom filter in my project.</p>
  <p><a href="http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/" rel="noreferrer">The Spring Boot Reference Guide</a> mentioned about
  <code>FilterRegistrationBean</code>, but I am not sure how to use it.</p>