shiro中IniSecurityManagerFactory过期

将Factory方法替换成DefaultSecurityManager 方法即可

 Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro.ini");
        SecurityManager securityManager = factory.getInstance();
        SecurityUtils.setSecurityManager(securityManager);
DefaultSecurityManager defaultSecurityManager=new DefaultSecurityManager();
        IniRealm iniRealm=new IniRealm();
        defaultSecurityManager.setRealm(iniRealm);
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页