• 大小: 30.04MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-22
  • 语言: Java
  • 标签: ssm  shiro  mysql  

资源简介

Java语言的框架整合及权限的控制(粗粒度、细粒度) SSM(spring+springmvc+mybatis)的整合 SSM+shiro基于资源的权限控制整合demo 配置文件原理的注释 shiro的认证、授权、及从数据库mysql获取的认证信息方法都有提供

资源截图

代码片段和文件信息

package com.yb2g.ssm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yb2g.ssm.shiro.CustomRealm;

/**
 * 
 * @ClassName: ClearShiroCache 
 * @Description: 手动调用controller清除shiro的缓存
 * @author: Administrator
 * @date: 2017年12月17日 下午11:16:16
 */
@Controller
public class ClearShiroCache {

//注入realm
@Autowired
private CustomRealm customRealm;

@RequestMapping(“/clearShiroCache“)
public String clearShiroCache(){

//清除缓存,将来正常开发要在service调用customRealm.clearCached()
customRealm.clearCached();

return “success“;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-18 15:32  ssm_shiro_demo\
     文件         929  2017-12-18 15:14  ssm_shiro_demo\.classpath
     文件        1047  2017-12-11 14:53  ssm_shiro_demo\.project
     目录           0  2017-12-18 15:32  ssm_shiro_demo\.settings\
     文件         567  2017-12-11 14:00  ssm_shiro_demo\.settings\.jsdtscope
     文件         364  2017-12-11 14:00  ssm_shiro_demo\.settings\org.eclipse.jdt.core.prefs
     文件         646  2017-12-18 15:14  ssm_shiro_demo\.settings\org.eclipse.wst.common.component
     文件         345  2017-12-11 14:00  ssm_shiro_demo\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-12-11 14:00  ssm_shiro_demo\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-12-11 14:00  ssm_shiro_demo\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2017-12-18 15:33  ssm_shiro_demo\WebContent\
     目录           0  2017-12-18 15:33  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\
     目录           0  2017-12-18 15:33  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\
     目录           0  2017-12-18 15:32  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\
     文件         583  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\_content.html
     文件        2320  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\accordion.html
     文件        1391  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\actions.html
     文件        1117  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\ajax.html
     文件        1534  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\basic.html
     文件        1428  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\datagrid_data1.json
     文件         874  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\expandable.html
     文件         841  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\fluid.html
     文件        1614  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\multiple.html
     文件        1833  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\accordion\tools.html
     目录           0  2017-12-18 15:32  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\application\
     文件        3557  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\application\base-tables.html
     文件        4672  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\application\cacheeditor.html
     文件         551  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\application\combobox_data1.json
     文件         927  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\application\combobox_data2.json
     文件        1444  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\application\combogrid_data1.json
     文件        4459  2017-11-18 21:24  ssm_shiro_demo\WebContent\EasyUI_of_InsdepTheme-1.5.1-0.0.1\example\application\cropper.html
............此处省略4234个文件信息

评论

共有 条评论