Configure custom login page
http.formLogin().loginPage("login.html") //Custom login page The error is caused by this, the page needs to be preceded by a slash
.loginProcessingUrl("/login") // the address of the action in the login form, which is the path of the authentication request
.usernameParameter("username")
.passwordParameter("password")
.defaultSuccessUrl("/home"); //Default jump path after successful login
Change to
http.formLogin().loginPage("/login.html")
.loginProcessingUrl("/login")
.usernameParameter("username")
.passwordParameter("password")
.defaultSuccessUrl("/home");
Read More:
- Nginx: How to Use Error_Page
- SSM project interceptor infinite loop error [How to Solve]
- Angular_ Error: Cannot assign to a reference or variable!
- Refresh 404 after packaging Vue project, uncaught syntax error: unexpected token <
- Docker Error response from daemon: Get https://registry-1.docker.io/v2/portainer/portainer/…
- Solution: configuration of multiple front ends separated from front end and back end of nginx
- How to Solve the jump error after Spring Security Login
- [Solved] fatal: could not read Username for
- [Solved] MongoDB Error: FaileError: dToParse: Password must be URL Encoded for mongodb:// URL:
- [Solved] jumpserver nginx Error: Connect websocket server error
- How to Solve Logstash error: failed to execute action
- [Solved] thymeleaf.TemplateEngineException processing template “main“: An error happened during template pars
- The drone settings page is not trusted
- [Solved] Hadoop Error: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- Net use Errors Explanation
- [Solved] Interface automation test: JSON parse error
- [Solved] Error in porting libzrtp: automake-1.14: command not found
- Git push Submit to Remote Error: “remote: Support for password authentication was removed on August 13, 2021.“
- fatal: unable to access”: The requested URL returned error: 500
- [Solved] Net.exe: ‘Error: A command was used with conflicting switches.’ while using /savecred?