Logout link with Spring and Thymeleaf -
according official example (secure web content), have use form , button aim perform logout spring security. there way use link thymeleaf instead of button?
i have used <a th:href="@{/logout}">logout</a>
the relevant spring security config used
http .formlogin() .loginpage("/login") .permitall() .and() .logout() .logouturl("/logout") .logoutsuccessurl("/login");
Comments
Post a Comment