title: Spring Security: How to get the automatically rendered login page code?
body: <p>Is it possible to get the automatically rendered login code from a Spring Security Project?</p>
  
  <p>The new Spring Project examples are not with any XML or JSP files. I used the Spring framework in the past and I remember you need to configure a XML file and you had JSP data for html.</p>
  
  <p>Now i want to make a Spring MVC Login page for LDAP authentication.
  But the examples are without any XML and JSP files. Is it possible to get them to have full controll of the code?</p>
  
  <p>Some links:</p>
  
  <ul>
  <li>I use the <a href="http://spring.io/blog/2013/07/03/spring-security-java-config-preview-web-security/#wsca" rel="nofollow">WebSecurityConfigurerAdapter</a></li>
  <li><a href="https://spring.io/guides/gs/authenticating-ldap/" rel="nofollow">Authenticating a User with LDAP</a></li>
  </ul>
  
  <p>This is the method that generates the login form: </p>
  
  <pre><code>@Override
  protected void configure(HttpSecurity http) throws Exception {
      http
          .authorizeRequests()
          .antMatchers("/css/**").permitAll()
          .anyRequest().fullyAuthenticated()
          .and()
          .formLogin();
  }
  </code></pre>
  
  <p>I just want to create the login form by myself.</p>