步骤:
1:添加shiro与spring集成依赖jar包
2:在web.xml中配置shiro与spring框架集成需要shiroFilter代理类
3:配置shiro配置文件
1>拷贝spring.xml文件, 删除调用除了根元素之外的所有内容,然后配置shiro相关操作
2>在mvc.xml文件中配置引入spring-shiro.xml文件
4:测试,启动服务器
步骤:
1:添加shiro与spring集成依赖jar包
2:在web.xml中配置shiro与spring框架集成需要shiroFilter代理类
3:配置shiro配置文件
1>拷贝spring.xml文件, 删除调用除了根元素之外的所有内容,然后配置shiro相关操作
2>在mvc.xml文件中配置引入spring-shiro.xml文件
4:测试,启动服务器