我使用spring-security-3.1和wicket
我想拒绝所有请求并将其重定向到登录
/ resources / *的一部分,其中有photoes和我的ajax加载器
我今天要做的是:
<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 :(得分:0)
问题出在其他地方,这是我在上面写的模式中的有效情况
http://localhost:8080/myServer/resources/images/ajax-loader.gif