SpringSecurity的注销及权限控制
1.开启注销功能
2.html中增加注销键
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- 注销 -->
<a class="item" th:href=@{/logout}>
<i class="sign-out icon"></i>登录
</a>
</body>
</html>