title: How to properly configure http tag in Spring Security 3.1?
body: <p>I have problem with my <code>spring-security.xml</code> file. I have wanted to configure some session settings and first of all create login form to maintain guests and logged in users.</p>
  
  <p>This is my <code>spring-security.xml</code> headline:</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:security="http://www.springframework.org/schema/security"
  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
        http://www.springframework.org/schema/security/spring-security-3.1.xsd"&gt;
  </code></pre>
  
  <p>As you can see I am using Spring Security in latest version - 3.1. When I try to change the schema versione to lower, I have got errors. In terms of 3.1 version I have only yellow warnings in Eclipse.</p>
  
  <p>My <code>http</code> tag looks like:</p>
  
  <pre><code>&lt;security:http auto-config='true'&gt;      
      &lt;security:intercept-url pattern="/wellcome*" access="ROLE_USER"  /&gt;
      &lt;security:form-login login-page="/login" default-target-url="/wellcome" authentication-failure-url="/loginfailed"  /&gt;
      &lt;security:logout logout-success-url="/logout" /&gt;
      &lt;security:session-management invalid-session-url="/invalidsession" /&gt;
  &lt;/security:http&gt;
  </code></pre>
  
  <p>And at the first line of this tag I have long list of warnings:</p>
  
  <pre><code>Multiple annotations found at this line:
  - Method 'setAuthenticationEntryPoint' is marked deprecated [config set: SpringMVC/web-context]
  - Method 'setSessionAuthenticationStrategy' is marked deprecated [config set: SpringMVC/web-
   context]
  - Method 'setUserAttribute' is marked deprecated [config set: SpringMVC/web-context]
  - Method 'setRequestCache' is marked deprecated [config set: SpringMVC/web-context]
  - Method 'setKey' is marked deprecated [config set: SpringMVC/web-context]
  - Method 'setSecurityContextRepository' is marked deprecated [config set: SpringMVC/web-context]
  </code></pre>
  
  <p>Additionaly I have also one warning on the third line:</p>
  
  <pre><code>Method 'setLoginFormUrl' is marked deprecated [config set: SpringMVC/web-context]
  </code></pre>
  
  <p>Could you explain me how I should properly define my <code>spring-security.xml</code> file with <code>http</code> tag in Spring Security 3.1?</p>