Shiro Security

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

posted @ 2015-01-13 15:13  george_cw  阅读(176)  评论(0编辑  收藏  举报