Shiro集成Web项目:配置过滤器与导入依赖.pdfVIP

  • 0
  • 0
  • 约2.08万字
  • 约 26页
  • 2026-07-03 发布于北京
  • 举报

Shiro集成Web项目:配置过滤器与导入依赖.pdf

导入依赖

!‑‑导入shiro的包‑‑artifactIdshiro‑core/artifactId!‑‑

导入shiro和Spring集成的依赖‑‑artifactIdshiro‑spring/

artifactId!‑‑shiro和web项目集成的依赖‑‑artifactId

shiro‑web/artifactIdartifactIdshiro‑ehcache/artifactId!‑‑

shiro的缓存配置‑‑artifactIdehcache‑core/artifactId!‑‑

shiro的freemarker的解析‑‑artifactId

shiro‑freemarker‑tags/artifactId

认证集成

1.在web.xml文件

配置一个过滤器的委托类,实际上的请求会交给web容器(SpringMVC容器)中的shiroFilter处理

!--配置一个shiro过滤器--

filter-nameshiroFilter/filter-name

classorg.

文档评论(0)

1亿VIP精品文档

相关文档