I am building a spring boot web application for flight booking. I have an index page, a registration page, a login page and a home page. I am facing two issues:
When I run the application, the default login page opens instead of the index page, even though I have enabled access to the index page without logging in. Below is the security configuration:
enter image description here
And the registration controller:
enter image description here
After logging in, the index page opens successfully, however, when I click on the ‘register’ button, it redirects to a white label error page. Similarly, I am not able to open the home page, and the custom login page (it redirects to the default login page provided by spring security).
enter image description here
Please let me know if additional information is needed.
Hisham Gundagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.