title: Spring Boot Security not ignoring directory using WebSecurity
body: <p>
  I am trying to ignore directory using websecurity.ignore. I have the following configuration.
  </p>
  
  <pre><code>    @Override
      protected void configure(HttpSecurity http) throws Exception {
              http
                  .authorizeRequests()
                      .antMatchers("/", "/home").permitAll()
                      .antMatchers("/product_save").hasAuthority("ADMIN")
                      .anyRequest().authenticated()
                      .and()
                  .formLogin()
                      .loginPage("/login")
                      .permitAll()
                      .and()                  
                  .logout()
                      .permitAll().and().csrf().disable()
                      .exceptionHandling().and()
                      .rememberMe()
                          .key("uniqueAndSecret")
                          .rememberMeCookieName("broman-remember-me")
                          .tokenValiditySeconds(60 * 60 * 24).and()
                      .sessionManagement().maximumSessions(1);
  
      }
  
      @Override
      public void configure(WebSecurity web)throws Exception {
          web.ignoring().antMatchers("/static/**");
      }
  }
  </code></pre>
  
  
  
  <p>The above configuration doesn't ignore.
  </p>