public class IpFilter implements Filter {
private BootdoConfig bootdoConfig;
@Override
public void init(FilterConfig filterConfig) throws ServletException {
ServletContext context = filterConfig.getServletContext();
ApplicationContext ctx =
WebApplicationContextUtils.getWebApplicationContext(context);
bootdoConfig = ctx.getBean(BootdoConfig.class);
}
}



