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:
- How to Solve the jump error after Spring Security Login
- Prometheus Error: “INVALID“ is not a valid start token [How to Solve]
- [How to Fix] Spring boot startup error: could not resolve placeholder
- Start Docker Quickstart Terminal error This computer is running Hyper-V. VirtualBox won’t boot a 64bits VM when Hyper-V is activated
- Spring-boot Use dubbo Error: ERROR 8404 o.s.boot.SpringApplication:Application run failed
- [Solved] ERROR: ./depthai_sdk is not a valid editable requirement.
- Causes of error in data transmission from spring boot to JSON
- Two implementation methods of spring boot scan mapper interface class
- New Spring boot startup error Failed to auto-configure a DataSource
- Dyf Spring boot startup error: NoSuchBeanDefinitionException
- Error running ‘PigSellCabinetApplication’: Command line is too long. Shorten command line for PigSellCabinetApplication or also for Spring Boot default configuration
- Spring Boot Druid Error: discard long time none received connection
- [neo4j] error report when visiting neo4j in spring boot project
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- [Solved] Goland sdk Error: The selected directory is not a valid home for Go SDK
- Spring boot uses configuration interface webmvcconfigurer to solve cross domain problems
- [How to Fix] manual close is not allowed over a Spring managed SqlSession
- [Solved] MongoDB Error: FaileError: dToParse: Password must be URL Encoded for mongodb:// URL:
- [Exception] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
- [Solved] ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure.