Skip to content

Instantly share code, notes, and snippets.

View shariqislam786's full-sized avatar

shariqislam786

View GitHub Profile
@shariqislam786
shariqislam786 / AnnotatedHttpServlet.java
Created May 10, 2018 09:23
How to inject existing servlet into spring
import javax.servlet.annotation.WebServlet;
import org.springframework.web.context.support.HttpRequestHandlerServlet;
/**
* Servlet implementation class AnnotatedHttpServlet
*/
@WebServlet(description = "Graph Ql Servlet", urlPatterns = { "/endpoint" }, name = "servletHandler")
public class AnnotatedHttpServlet extends HttpRequestHandlerServlet {