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

你可能感兴趣的文章
利用sed把一行的文本文件改成每句一行
查看>>
Android应用开发:核心技术解析与最佳实践pdf
查看>>
python——爬虫
查看>>
孤荷凌寒自学python第五十八天成功使用python来连接上远端MongoDb数据库
查看>>
求一个字符串中最长回文子串的长度(承接上一个题目)
查看>>
简单权限管理系统原理浅析
查看>>
springIOC第一个课堂案例的实现
查看>>
求输入成绩的平均分
查看>>
php PDO (转载)
查看>>
wordpress自动截取文章摘要代码
查看>>
[置顶] 一名优秀的程序设计师是如何管理知识的?
查看>>
scanf和gets
查看>>
highcharts 图表实例
查看>>
ubuntu下如何查看用户登录及系统授权相关信息
查看>>
秋季学期学习总结
查看>>
SpringBoot 优化内嵌的Tomcat
查看>>
【LaTeX】E喵的LaTeX新手入门教程(1)准备篇
查看>>
highcharts曲线图
查看>>
extjs动态改变样式
查看>>
PL/SQL Developer 查询的数据有乱码或者where 字段名=字段值 查不出来数据
查看>>