1 <beans:beans xmlns="http://www.springframework.org/schema/security"
2 xmlns:beans="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
6 http://www.springframework.org/schema/security
7 http://www.springframework.org/schema/security/spring-security-3.1.xsd">
9 <http auto-config="true">
10 <intercept-url pattern="/home/*" access="ROLE_USER" />
11 <form-login login-page="/login" default-target-url="/welcome"
12 authentication-failure-url="/loginfailed" />
13 <logout logout-success-url="/logout" />
16 <authentication-manager>
17 <authentication-provider>
19 <user name="sherstnev" password="sasha12345" authorities="ROLE_USER" />
21 </authentication-provider>
22 </authentication-manager>