IP黑白名单

拦截器

package com.rebuild.core.interceptor;

import cn.devezhao.persist4j.Entity;
import cn.devezhao.persist4j.engine.ID;
import com.alibaba.fastjson.JSONObject;
import com.rebuild.api.RespBody;
import com.rebuild.core.Application;
import com.rebuild.core.UserContextHolder;
import com.rebuild.core.metadata.EntityHelper;
import com.rebuild.core.metadata.MetadataHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.StreamUtils;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;


@Slf4j
public class IPInterceptor implements HandlerInterceptor {

  /*  @Autowired
    private ProjectTableDao projectTableDao;*/

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse r

你可能感兴趣的:(tcp/ip,servlet,java)