权限拦截架构
需求
参考:权限统一拦截需求
相关领域模型
相关业务类
拦截时序图
逻辑说明
- 在FacadeProcessor中进行跳转
- FacadeProcessor 返回true表示不需要其它处理器处理
- 在 FacadeProcessor 中获取当前url传递给登录页 url要进行encoding
伪代码
if(uri.startsWith("/member/") || ...) {
HttpServletResponse response = ThreadContextHolder.getHttpResponse();
response.sendRedirect("/store/login.html?forward="+forward);
return true;
}