且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

j_spring_security_check HTTP状态404(自定义登录)

更新时间:2022-04-30 23:19:17

spring-security.xml 中进行以下更改。提及 login-processing-url =/ j_spring_security_check

Make the below changes in your spring-security.xml. Mention the login-processing-url="/j_spring_security_check"

<form-login login-processing-url="/j_spring_security_check" login-page="/login" default-target-url="/"
            authentication-failure-url="/login?error" username-parameter="username"
            password-parameter="password" />