Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <b:beans xmlns:b="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://www.springframework.org/schema/security"
- xsi:schemaLocation="
- http://www.springframework.org/schema/security
- http://www.springframework.org/schema/security/spring-security.xsd
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd">
- <http auto-config="true">
- <intercept-url pattern="/" access="hasRole('ROLE_ADMIN')"/>
- </http>
- <authentication-manager>
- <authentication-provider>
- <user-service>
- <user name="admin" password="admin" authorities="ROLE_ADMIN" />
- </user-service>
- </authentication-provider>
- </authentication-manager>
- </b:beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement