博客
关于我
强烈建议你试试无所不能的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

你可能感兴趣的文章
redis-pipeline
查看>>
计蒜客---最大子阵列
查看>>
matlab的conv2、imfilter、filter2
查看>>
弗洛伊德算法(Floyd)
查看>>
xFire 开发web services
查看>>
设计类图
查看>>
ios中将事件添加到系统日历
查看>>
类对象
查看>>
ios 上架流程
查看>>
ajax连接池和XMLHttpRequest
查看>>
[Voice communications] 声音的滤波
查看>>
BZOJ.3139.[HNOI2013]比赛(搜索 Hash)
查看>>
BZOJ.4316.小C的独立集(仙人掌 DP)
查看>>
json在线解析
查看>>
Git的优势
查看>>
《需求规格说明书》业务描述活动图
查看>>
Resnet论文翻译
查看>>
第十四天-内置函数
查看>>
连接LilyPad之Linux平台的驱动
查看>>
Apriori算法的C++实现
查看>>