jfinal配置shiro

https://gitee.com/luko/jfinalshiroplugingit

 

JFinal的Shiro權限管理插件post

支持jfinal3.4, (3.3)有問題ui

 

================this

public void configPlugin(Plugins me) {插件

ShiroPlugin shiroPlugin = new ShiroPlugin(this.routes);token

shiroPlugin.setLoginUrl("/login");get

shiroPlugin.setUnauthorizedUrl("/unauth");it

me.add(shiroPlugin);route

}plugin

 

public void configInterceptor(Interceptors me) {

me.add(new ShiroInterceptor());

}

 

public void configEngine(Engine me) {

me.addSharedObject("shiro",new ShiroKit());

}

public void postLogin() {

        MuitiLoginToken token = new MuitiLoginToken(loginName, pwd);

        Subject subject = SecurityUtils.getSubject();

相關文章
相關標籤/搜索