<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body> <ul class="nav navbar-nav navbar-right" sec:authorize="isAuthenticated()">
<li><a th:href="@{/logout}">登出</a></li>
</ul>
</body>
</html>
<li sec:authorize="isAnonymous()"><a href="/user/login">登录</a></li>
<li sec:authorize="isAuthenticated()"><a th:href="@{/logout}" class="logout">登出</a> <a href="/user/modifyPassword">修改密码</a></li>
 
05-11 13:25