Spring Security Custom Html Login Page Not Rendered
i have followed this link for all configurations to set link up my custom html page for login. However, when i access localhost/login, i am faced with error status 500. I am unable
Solution 1:
I have managed to resolve this. The main issue was because my artefactID was also named login. This resulted in all other context of "login", including "login.html" to be voided. I modified my controller to below and changing my html file to login2.html it worked.
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class LoginController {
@GetMapping("/login")
public String login2() {
return "login2";
}
}
Post a Comment for "Spring Security Custom Html Login Page Not Rendered"