博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
thymeleaf-extras-shiro
阅读量:4965 次
发布时间:2019-06-12

本文共 1653 字,大约阅读时间需要 5 分钟。

thymeleaf-extras-shiro

转载:

A dialect for .

Download

Maven
com.github.theborakompanioni
thymeleaf-extras-shiro
${thymeleaf-shiro.version}
Jar

from Maven Central.

Repository
git clone https://github.com/theborakompanioni/thymeleaf-extras-shiro.git

Example

      thymeleaf-extras-shiro        

Please login

Hello, , how are you today?

Tags

The following examples show how to integrate the tags in your Thymeleaf templates. These are all implementations of the examples given in the of the Apache Shiro documentation.

Tags can be written in attribute or element notation:

Attribute

Goodbye cruel World!

Element

Hello World!


The guest tag

Please Login

The user tag

Welcome back John! Not John? Click here to login.

The authenticated tag
The notAuthenticated tag

Please login in order to update your credit card information.

The principal tag

Hello, , how are you today?

or

Hello,

, how are you today?

Typed principal and principal property are also supported.

The hasRole tag
The lacksRole tag

Sorry, you are not allowed to administer the system.

The hasAllRoles tag

You are a developer and a project manager.

The hasAnyRoles tag

You are a developer, project manager, or administrator.

The hasPermission tag
The lacksPermission tag

Sorry, you are not allowed to delete user accounts.

The hasAllPermissions tag

You can create and delete users.

The hasAnyPermissions tag

You can create or delete users.

转载于:https://www.cnblogs.com/huiy/p/7704313.html

你可能感兴趣的文章
T-SQL Recipes之Separating elements
查看>>
checked和unchecked的区别
查看>>
Web性能压力测试之Webbench使用详解
查看>>
php学习笔记6
查看>>
hdu2054 不要想太多,这就一水题
查看>>
CHtmlCtrl的实现
查看>>
洛谷 P1546 最短网络 Agri-Net
查看>>
Spring-cloud & Netflix 源码解析:Eureka 服务注册发现接口 ****
查看>>
技术blog链接
查看>>
web前端实战系列[3]——下拉菜单
查看>>
111 Minimum Depth of Binary Tree 二叉树的最小深度
查看>>
Hadoop使用常见问题以及解决方法1
查看>>
重载与覆盖的差别
查看>>
NLP系列(2)_用朴素贝叶斯进行文本分类(上)
查看>>
<LeetCode OJ> 121. /122. Best Time to Buy and Sell Stock(I / II)
查看>>
HTTP Status 415 – Unsupported Media Type(使用@RequestBody后postman调接口报错)
查看>>
JIRA 敏捷开发平台部署记录
查看>>
react里面引入图片
查看>>
问题分析
查看>>
P4安装
查看>>