//package com.hotent.uc.filter;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.core.annotation.Order;
//import org.springframework.data.redis.core.StringRedisTemplate;
//import org.springframework.stereotype.Component;
//
//import java.io.IOException;
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.FilterConfig;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.annotation.WebFilter;
//import javax.servlet.http.HttpServletRequest;
//
///**
// * 用于判断当前当Api对内、外接口
// **/
////@Component
////@Order(1)
////@WebFilter(filterName = "ApiFilter",urlPatterns = "/*")
//public class ApiFilter implements Filter {
//    private static Logger logger= LoggerFactory.getLogger(ApiFilter.class);
//
//    @Autowired
//    private StringRedisTemplate redisTemplate;
//
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//
//    }
//
//    @Override
//    public void destroy() {
//    }
//
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
//        HttpServletRequest httpRequest = (HttpServletRequest)request;
//        String path=httpRequest.getRequestURI();
////        logger.info("当前path路径是，{}",path);
//        chain.doFilter(request,response);
//    }
//}