spring - j_spring_security_check not available. Please help with Spring3 login -


I'm trying to write something with safety in Spring 3. I'm trying to use the default login screen That's what everyone says that spring will be displayed for you. But two days after trying and receiving the error:

/ Spring-security-login was not found

I left my code and changed it Given:

  & lt; Http auto-config = "true" & gt; & Lt; Intercept-url pattern = "/ friends / **" access = "ROLE_USER, ROLE_ADMIN" /> & Lt; Form-login login-page = "/ login.jsp" default-target-url = "/ friends / add.html" authentication-failure- url = "/ login.jsp? Authfailed = true" /> & Lt; / Http & gt;   

And I've added my code to login.jsp which I think I made right. I am getting this error now:

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.

Add it to your web.xml

  & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; SpringSecurityFilterChain & lt; / Filter-name & gt; & Lt; URL pattern & gt; / * & Lt; / URL pattern & gt; & Lt; Dispatcher & gt; Request & lt; / Dispatcher & gt; & Lt; Dispatcher & gt; Next & lt; / Dispatcher & gt; & Lt; / Filter-mapping & gt;    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -