Open jackiect opened 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是不必须的。
SecurityUtils.setSecurityManager
关于是否要在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
在spring-config-shiro.xml代码处https://github.com/zhangkaitao/es/blob/master/web/src/main/resources/spring-config-shiro.xml#L162
按照官网的建议,调用静态方法
SecurityUtils.setSecurityManager
是不必须的。