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 - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -