package ru.qatools.gridrouter; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import static org.springframework.web.context.support.SpringBeanAutowiringSupport.processInjectionBasedOnServletContext; /** * @author Ilya Sadykov */ public abstract class SpringHttpServlet extends HttpServlet { @Override public void init(ServletConfig config) throws ServletException { super.init(config); processInjectionBasedOnServletContext(this, config.getServletContext()); } }