applicationContext-security.xml 897 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. - Sample namespace-based configuration
  4. -
  5. -->
  6. <beans xmlns="http://www.springframework.org/schema/beans"
  7. xmlns:sec="http://www.springframework.org/schema/security"
  8. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
  10. http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">
  11. <sec:http>
  12. <sec:intercept-url pattern="/secure/extreme/**" access="hasRole('ROLE_SUPERVISOR')"/>
  13. <sec:intercept-url pattern="/secure/**" access="hasRole('ROLE_USER')"/>
  14. <sec:intercept-url pattern="/**" access="hasRole('ROLE_USER')"/>
  15. <sec:jee mappable-roles="ROLE_USER,ROLE_SUPERVISOR" />
  16. <sec:logout />
  17. </sec:http>
  18. <sec:authentication-manager />
  19. </beans>