|
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:hacking="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<hacking:http auto-config="true" use-expressions="true">
<hacking:intercept-url pattern="/" access="permitAll"/>
<hacking:intercept-url pattern="/admin/**" access="hasRole('ROLE_ADMIN')"/>
<hacking:intercept-url pattern="/jln/**" access="hasRole('ROLE_NO_ONE')"/>
<hacking:form-login login-page="/login"/>
</hacking:http>
<hacking:authentication-manager alias="authenticationManager">
<hacking:authentication-provider>
<hacking:user-service>
<hacking:user name="admin" password="*" authorities="ROLE_ADMIN"/>
</hacking:user-service>
</hacking:authentication-provider>
</hacking:authentication-manager>
</beans>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.