标签名称 | 标签条件(均是显示标签内容) |
<shiro:authenticated> | 登录之后 |
<shiro:notAuthenticated> | 不在登录状态时 |
<shiro:guest> | 用户在没有RememberMe时 |
<shiro:user> | 用户在RememberMe时 |
<shiro:hasAnyRoles name="abc,123"> | 在有abc和123角色时 |
<shiro:hasRole name="abc"> | 拥有角色abc |
<shiro:lacksRole name="abc"> | 拥有角色abc |
<shiro:hasPermission name="abc"> | 拥有权限资源abc |
<shiro:lacksPermission name="abc"> | 没有abc权限的资源 |
<shiro:principal> | 显示用户身份名称 |
<shiro:principal property="username" | 显示用户身份中的属性值 |
Shiro 九 jsp标签
猜你喜欢
转载自blog.csdn.net/m0_38044453/article/details/90037683
今日推荐
周排行