This action will force synchronization from 领课网络/shiro-freemarker-tags, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
本项目是基于 shiro-freemarker-tags,由于在maven中央库里面没有找到,所以fork了过来,同时对项目进行了jar版本的升级,便于后面的开发。
2017-03-04 项目初始化,并升级依赖的2个jar版本。
<!-- https://mvnrepository.com/artifact/com.roncoo/shiro-freemarker-tags -->
<dependency>
<groupId>com.roncoo</groupId>
<artifactId>shiro-freemarker-tags</artifactId>
<version>1.0.0</version>
</dependency>
下载 dist/shiro-freemarker-tags-1.0.0.jar 这个jar放到你的项目里面(注意:该jar是使用jdk8进行打包,如果出现兼容性问题,请使用自己的jdk版本进行打包)
定义一个变量 "shiro", 然后把 ShiroTags这个实例放入去
cfg.setSharedVariable("shiro", new ShiroTags());
在你的Freemarker模板就可以使用
<@shiro.guest>Hello guest!</@shiro.guest>
Do what you want with it, just don't blame me if it breaks anything.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。