首页 > TAG信息列表 > doResponse

千峰商城-springboot项目搭建-54-拦截器校验Token

1.创建拦截器 @Component public class CheckTokenInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { String token = request