标签:
手动创建shiro Filter的java代码
// Factory<org.apache.shiro.mgt.SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro.ini");
// 创建SecurityManager (根据配置创建SecurityManager实例)
//org.apache.shiro.mgt.SecurityManager security = (org.apache.shiro.mgt.SecurityManager) factory.getInstance();
//SecurityUtils.setSecurityManager((org.apache.shiro.mgt.SecurityManager) security);
标签:
原文地址:http://www.cnblogs.com/george-cw/p/4221409.html