手动创建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);

04-14 10:16