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

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -