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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -