2013-08-18 120 views
0

我使用spring-security-3.1和wicket
我想拒絕所有請求並將其重定向到登錄 /resources/*的一部分,其中有photoes和我的ajax裝載機 我今天我做的是:spring安全拒絕全部資源

<security:http create-session="always" use-expressions="true"> 

    <security:intercept-url pattern="/admin" 
     access="hasRole('ROLE_ADMIN')" /> 

    <security:intercept-url pattern="/login" 
     access="permitAll()" /> 

    <security:intercept-url pattern="/" 
     access="hasRole('ROLE_USER')" /> 

<security:form-login login-page="/login" /> 
    <security:anonymous enabled="true" /> 
    <security:logout logout-url="/logout" /> 

</security:http> 

我在客戶端這個錯誤得到:

GET http://localhost:8080/myServer/resources/images/ajax-loader.gif 404 (Not Found) 

回答

0

的問題是其他地方,這是我在上面

http://localhost:8080/myServer/resources/images/ajax-loader.gif 
寫的格局vaild情況