技术:spring filter
运行环境:IDEA 15.2 + jdk8 + windows 7 + spring-5.0.0.RELEASE
demo功能:提供一个spring filter基本接入
/**
* Created by francis on 2018/1/3.
*/
public class SessionFilter extends OncePerRequestFilter {
@Override
protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
System.out.println("====测试Filter功能====拦截用户登陆====");
filterChain.doFilter(httpServletRequest, httpServletResponse);//不执行过滤,继续执行操作
}
}
sessionFilter
com.ctrip.filters.SessionFilter
sessionFilter
/*
欢迎添加微信,互相学习↑↑↑ -_-
白老虎
programming is not only to solve problems, ways to think
grafana 级连 菜单 templating (variables) 配置
AI 机器人 抓取 微信 聊天中的 百度网盘 分享地址和密码
rocketmq 集群搭建 (2master + 2slave + 2namesrv)