文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > apache shiro
侵权投诉

apache shiro

Apache Shiro介绍

一、 Apache Shiro是什么?

Apache Shiro一个功能强大,使用简单的Java安全框架,它为开发人员提供一个直观而全面的认证,授权,加密及会话管理的解决方案。

二、 Apache Shiro应用

1) 在/WEB-INFO/LIB/下添加jar包

apache shiro

2) 配置web.xml,添加过滤器

<filter>

<filter-name>ShiroFilter</filter-name>

<filter-class>

org.apache.shiro.web.servlet.IniShiroFilter

</filter-class>

<!-- 没有init-param属性就表示从classpath:shiro.ini装入INI配置 --> </filter>

<filter-mapping>

<filter-name>ShiroFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

3) 配置shiro.ini

#下面是用户名 =密码,登录类型

# format: username = password, role1, role2, ..., roleN

[users]

admin = 123 , admin , member

member = 123 ,member

user = 123 ,user

第1页

你可能喜欢

热门文档

相关文档

  • Apache_Shiro开发文档

    Apache Shiro Reference Documentation Introduction to Apache Shiro What is Apache Shiro? Apache Shiro 是一个强大而灵活的开源安全框架,它干净利落地处理身份认证,...

  • Apache shiro浅谈

    Apache shiro浅谈_计算机软件及应用_IT/计算机_专业资料。有关权限框架shiro的一些个人总结Apache shiro 浅谈 1. 什么是 Apache Shiro? Apache shiro 是一个 java...

  • 安全认证框架-Apache Shiro研究心得

    安全认证框架-Apache Shiro研究心得_计算机软件及应用_IT/计算机_专业资料。Apache Shiro安全认证框架-Apache Shiro 研究心得 最近因为项目需要,研究了一下 Apache ...

  • apache shiro自定义realm

    apache shiro自定义realm_IT/计算机_专业资料。apache shiro 自定义 realm 为什么要自定义 realm,用户资料可以写在.ini 文件里,如 [users] admin = 123 这就...

  • Apache Shiro

    shiro安全控件shiro安全控件隐藏>> Apache Shiro(日语“堡垒(Castle)”的意思)是一个强大易用的Java安全框架,提供了认证、授权、加密和会话管理功能,可为任何应用...

  • apache_shiro入门

    -- apache shiro权限 --> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</f ilter-...

  • Apache Shiro技术详解

    Apache Shiro技术详解_计算机软件及应用_IT/计算机_专业资料。使用Apache Shiro实现基于RBAC权限模型的权限控制。1.什么是 Apache Shiro Apache Shiro 是一个强大易...

  • Shiro安全登录框架学习

    Shiro入门学习手册简单的介绍,简单的配置,简单的 扩展 By jfm 一,shiro简介 Apache Shiro是一个强大而灵活的开源安全框架,它能够干净利落 地处理身份认证,授权,...

  • Apache Shiro 使用手册

    Apache Shiro 使用手册_互联网_IT/计算机_专业资料。ShiroApache Shiro 使用手册(一)Shiro 架构介绍 博客分类: ? 开发 安全框架 Shiro 一、什么是 Shiro Apache...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email