zhangkaitao / es

JavaEE项目开发脚手架(我的公众号:kaitao-1234567,我的新书:《亿级流量网站架构核心技术》)
https://github.com/zhangkaitao/es
Apache License 2.0
2.17k stars 1.59k forks source link

we应用中shiro的spring配置SecurityUtils.setSecurityManager问题 #86

Open jackiect opened 9 years ago

jackiect commented 9 years ago

在spring-config-shiro.xml代码处https://github.com/zhangkaitao/es/blob/master/web/src/main/resources/spring-config-shiro.xml#L162

按照官网的建议,调用静态方法SecurityUtils.setSecurityManager是不必须的。

jackiect commented 9 years ago

关于是否要在spring中静态调用该方法,这个帖子有详细讨论:http://shiro-user.582556.n2.nabble.com/Do-you-have-to-SecurityUtils-setSecurityManager-in-a-web-app-to-use-shiro-tag-library-td7114798.html