2011-03-27 2 views
4

Security로 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.

답변

0

당신의 web.xml이 추가를

<filter-mapping> 
    <filter-name>springSecurityFilterChain</filter-name> 
    <url-pattern>/*</url-pattern> 
    <dispatcher>REQUEST</dispatcher> 
    <dispatcher>FORWARD</dispatcher> 
</filter-mapping> 
관련 문제