79650984

Date: 2025-06-03 09:39:55
Score: 9 🚩
Natty:
Report link

You could try to remove the '.html' extension from 'signInPage' in your SecurityConfig class like this:

.formLogin(
    form ->
        form.loginPage("/signInPage")
            .permitAll()

The .html isn't necessary in your request as Spring (Spring mvc, security and thymeleaf) will route it to the appropriate view for you.

Also, do you have a @Controller class which returns your Sign-in page when requesting /signInPage?

For example, a very minimalistic code snippet:

@Controller
public class PageController {
 @GetMapping("signInPage")
 public String signInPage() {
  return "signInPage"; // this will lookup the signInPage.html in your resource/template directory
 }
}

Btw, I'm new to stackoverflow so please let me know if something is not according to the guidelines

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (2.5): do you have a
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Controller
  • Low reputation (1):
Posted by: Hans van den pol