title: Remember Me with Spring Security 3.1.3 - deprecated default constructors
body: <p>I'm doing a login with Spring Security 3.1 but I get a warning to deprecated and I could not get erased, it seems that this configuration is for version 3.0</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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.1.xsd
                      http://www.springframework.org/schema/security 
                      http://www.springframework.org/schema/security/spring-security-3.1.xsd"&gt;
  
      &lt;http auto-config="true" use-expressions="true"&gt;
          &lt;intercept-url pattern="/pages/admin/**" access="hasRole('ROLE_ADMIN')" /&gt;
          &lt;intercept-url pattern="/**" access="permitAll"/&gt;
          &lt;form-login login-page="/pages/login.jsf"/&gt;
          &lt;remember-me key="jsfspring-sec" services-ref="rememberMeServices"/&gt;
          &lt;logout
              invalidate-session="true"
              delete-cookies="JSESSIONID,SPRING_SECURITY_REMEMBER_ME_COOKIE"
              logout-success-url="/pages/login.jsf"/&gt;
      &lt;/http&gt;
  
      &lt;authentication-manager alias="authenticationManager"&gt;
          &lt;authentication-provider ref="rememberMeAuthenticationProvider"&gt;
          &lt;/authentication-provider&gt;
          &lt;authentication-provider&gt;
              &lt;user-service id="userDetailsService"&gt;
                  &lt;user authorities="ROLE_ADMIN" name="admin" password="admin" /&gt;
              &lt;/user-service&gt;
          &lt;/authentication-provider&gt;
      &lt;/authentication-manager&gt;
  
      &lt;beans:bean id="rememberMeServices"
          class="org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices"&gt;
          &lt;beans:property  name="key" value="jsfspring-sec" /&gt;
          &lt;beans:property  name="userDetailsService" ref="userDetailsService" /&gt;
          &lt;beans:property  name="alwaysRemember" value="true" /&gt;
          &lt;beans:property  name="tokenValiditySeconds" value="60" /&gt;
      &lt;/beans:bean&gt;
  
  
      &lt;beans:bean id="rememberMeAuthenticationProvider"
          class="org.springframework.security.authentication.RememberMeAuthenticationProvider"&gt;
          &lt;beans:property name="key" value="jsfspring-sec"/&gt;
      &lt;/beans:bean&gt;
  
      &lt;beans:bean id="rememberMeFilter"
          class="org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter"&gt;
          &lt;beans:property name="rememberMeServices" ref="rememberMeServices"/&gt;
          &lt;beans:property name="authenticationManager" ref="authenticationManager" /&gt;
      &lt;/beans:bean&gt;
  
  &lt;/beans:beans&gt;
  </code></pre>
  
  <p>I could not find how to do it with Spring 3.1. Can someone help me? The last three beans are deprecated, I would appreciate help. Here is the url of the repository in GitHub: <a href="https://github.com/wmanriques/spring_template" rel="nofollow">https://github.com/wmanriques/spring_template</a></p>