I am using spring boot with the spring-boot-starter-security dependency.
I have an application that will successfully login given the proper credentials. However, whenever I login I am not being redirected anywhere. How can I configure this?
Below is the form:
<form th:action="@{/login}" method="post">
<div><label> User Name : <input type="text" name="username"/> </label></div>
<div><label> Password: <input type="password" name="password"/> </label></div>
<div><input type="submit" value="Sign In"/></div>
</form>
I have tried changing the th:action tag above but I wasn't able to get anywhere with it.
The MvcConfig method is below:
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/login").setViewName("login");
registry.addViewController("/").setViewName("login");
}