title: Is it possible to use a profile based filter in your web.xml
body: <p>Is it possible to use a profile based filter in your web.xml ? For example </p>
  
  <pre><code>    &lt;filter&gt;
          &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
          &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt;
           &lt;init-param&gt;
              &lt;param-name&gt;spring.profiles.active&lt;/param-name&gt;
              &lt;param-value&gt;secured&lt;/param-value&gt;
          &lt;/init-param&gt;
      &lt;/filter&gt;
  </code></pre>
  
  <p>I know this is possible for servlets, but I cant seem to get it to work for filters. </p>
  
  <p>Thanks </p>