1、依赖
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.10.0</version>
</dependency>
2、使用
<div shiro:hasPermission='"user:level1"'>
<a th:href="@{/user/level1}" >level1</a>
</div>
<a th:href="@{/toLogin}" th:if="${session.loginUser == null}">登录</a>
标签:1.10,spring,level1,thymeleaf,整合,shiro
From: https://www.cnblogs.com/yanshiheng/p/16991783.html