4
我正在尝试在Spring3中使用安全性编写一些内容。我试图使用默认的登录屏幕,每个人都说Spring会为你显示。但经过努力和取得误区之二日:j_spring_security_check不可用。请帮助Spring3登录
/spring-security-login not found
我放弃和改变了我的代码:
<http auto-config="true">
<intercept-url pattern="/friends/**" access="ROLE_USER,ROLE_ADMIN" />
<form-login login-page="/login.jsp"
default-target-url="/friends/add.html"
authentication-failure-url="/login.jsp?authfailed=true" />
</http>
和我加入了login.jsp
到我的项目,我认为我做了正确的。现在,我收到此错误:
HTTP Status 404 - /MySpring/j_spring_security_check message /MySpring/j_spring_security_check description The requested resource (/MySpring/j_spring_security_check) is not available.