Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring security 自定义登录页面问题 #26

Open
WilliamShoww opened this issue Aug 8, 2019 · 1 comment
Open

Spring security 自定义登录页面问题 #26

WilliamShoww opened this issue Aug 8, 2019 · 1 comment

Comments

@WilliamShoww
Copy link

.and()
                .formLogin()
                .loginPage("/admin_login.html")
                .usernameParameter("username")
                .passwordParameter("password")
                .loginProcessingUrl("/form/login")
                .defaultSuccessUrl("/index")
                .successForwardUrl("/index")

不知道为什么?感觉这几个设置不生效,成功了不会跳index 而是跳 /form/login

@hellochrisyou
Copy link

hellochrisyou commented Aug 8, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants