Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <b:beans xmlns:b="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns="http://www.springframework.org/schema/security"
  5. xsi:schemaLocation="
  6. http://www.springframework.org/schema/security
  7. http://www.springframework.org/schema/security/spring-security.xsd
  8. http://www.springframework.org/schema/beans
  9. http://www.springframework.org/schema/beans/spring-beans.xsd">
  10.  
  11. <http auto-config="true">
  12. <intercept-url pattern="/" access="hasRole('ROLE_ADMIN')"/>
  13. </http>
  14. <authentication-manager>
  15. <authentication-provider>
  16. <user-service>
  17. <user name="admin" password="admin" authorities="ROLE_ADMIN" />
  18. </user-service>
  19. </authentication-provider>
  20. </authentication-manager>
  21. </b:beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement