title: Why does .and().httpBasic(); not work in a WebSecurityConfigurerAdapter
body: <p>I'm trying to use Spring's Security's Java configuration in a class that extends WebSecurityConfigurerAdapter. I'm using version 3.2.0.RELEASE.</p>
  
  <p>In the HttpSecurity.java class there's an example as follows.</p>
  
  <pre><code>protected void configure(HttpSecurity http) throws Exception {
      http
          .authorizeRequests()
              .antMatchers("/**").hasRole("USER").and()
              .httpBasic();
  }
  </code></pre>
  
  <p>When I try to use this exact example in my project, the .and() method does not return an object with the .httpBasic() method on it. The HttpSecurity http object passed into the configure() method does have .httpBasic() on it.</p>
  
  <p>I'm trying to understand why this canonical example does not work. This seems pretty straightforward, and I've seen code all over the web using it in this same way.</p>
  
  <p>Do I have the wrong version? I see some people using the release candiates, but I thought the 3.2.0.RELEASE version was the most current (as listed here <a href="http://projects.spring.io/spring-security/" rel="nofollow">http://projects.spring.io/spring-security/</a>).</p>