title: Is there a hello-world spring security 4.0.SNAPSHOT example?
body: <p>I'm trying to apply spring security 4.0 to the simple <a href="http://www.mkyong.com/spring-security/spring-security-form-login-example/" rel="nofollow noreferrer">spring security project by mkyong</a>. What I've done is replaced the spring security's maven dependecies in that project from <code>3.2.2</code> to <code>4.0.0.SNAPSHOT</code> and schema location from</p>
  
  <pre><code>http://www.springframework.org/schema/security/spring-security-3.2.xsd
  </code></pre>
  
  <p>to</p>
  
  <pre><code>http://www.springframework.org/schema/security/spring-security.xsd
  </code></pre>
  
  <p>as follows:</p>
  
  <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/security"
      xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/security
  &lt;!-- The line below was replaced --&gt;
  http://www.springframework.org/schema/security/spring-security.xsd"&gt;
  
  &lt;http auto-config="true"&gt;
      &lt;intercept-url pattern="/admin**" access="ROLE_USER" /&gt;
  
      &lt;form-login 
          login-page="/login" 
          default-target-url="/welcome" 
          authentication-failure-url="/login?error" 
          username-parameter="username"
          password-parameter="password" /&gt;
      &lt;logout logout-success-url="/login?logout"  /&gt;
      &lt;!-- enable csrf protection --&gt;
      &lt;csrf/&gt;
  &lt;/http&gt;
  
  &lt;authentication-manager&gt;
      &lt;authentication-provider&gt;
          &lt;user-service&gt;
              &lt;user name="mkyong" password="123456" authorities="ROLE_USER" /&gt;
          &lt;/user-service&gt;
      &lt;/authentication-provider&gt;
  &lt;/authentication-manager&gt;
  </code></pre>
  
  <p></p>
  
  <p>And now it doesn't work. When I try loading the login page it doesn't render actual login page. Instead it render custom spring login form. And credentials, specified in the security's config file doesn't apply. </p>
  
  <p>Spring security 3.2.8
  <img src="https://i.stack.imgur.com/SwW7X.png" alt="enter image description here"></p>
  
  <p>After substitution with spring security 4.0.0</p>
  
  <p><img src="https://i.stack.imgur.com/aClIu.jpg" alt="enter image description here"></p>
  
  <p>What's wrong with that?</p>