ITeye博客

shiro

共 1 篇文章

shiro spring 整合

用shiro来作为系统的权限控制,它和spring的整合比较简单。思路是: 1. 首先用sping+struts2 做个最简单的登录 2. 引入shiro 一:简单的登录 1.login.jsp <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+r…

2012-11-01 17:41 · shiro