shiro
文章平均质量分 78
pomer_huang
尽人事,听天命
展开
-
解析 Shiro-Spring 过滤器全流程
对于Spring 集成 Shiro,一般要求配置一个如下的Filter(web.xml)<!-- The filter-name matches name of a 'shiroFilter' bean inside applicationContext.xml --> <filter> <filter-name>shiroFilter</filter-name> <filter-c原创 2017-12-23 03:43:40 · 727 阅读 · 0 评论 -
Shiro 改造成 Restful 风格
Apache Shiro 具有两种认证方式:①Filter 认证方式;②注解认证方式:在需要认证的方法上添加注解 @RequiresAuthentication、@RequiresPermissions、@RequiresRoles 等等 1.针对 Filter 的认证方式 Apache Shiro 默认配置了 11 个 Filter,分别是 public enum Defaul...原创 2018-04-13 19:54:00 · 5648 阅读 · 2 评论