shiro標籤

1.引入標籤

<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

2.拿到主體的標籤

<shiro:principal property="username" />  

3 權限判斷的標籤

<shiro:hasPermission name="employee:delete">
        <a href="javascript:;" data-method="delete" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">刪除</a>
</shiro:hasPermission>
發佈了70 篇原創文章 · 獲贊 3 · 訪問量 5742
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章