Drop @WebServlet annotation

Issue: SPR-16591
This commit is contained in:
Rossen Stoyanchev
2018-03-16 00:08:58 -04:00
parent 72bbb2619d
commit 7de2650a70
5 changed files with 6 additions and 8 deletions

View File

@@ -41,6 +41,7 @@ public class JettyHttpServer extends AbstractHttpServer {
ServletHttpHandlerAdapter servlet = createServletAdapter();
ServletHolder servletHolder = new ServletHolder(servlet);
servletHolder.setAsyncSupported(true);
this.contextHandler = new ServletContextHandler(this.jettyServer, "", false, false);
this.contextHandler.addServlet(servletHolder, "/");

View File

@@ -73,7 +73,7 @@ public class TomcatHttpServer extends AbstractHttpServer {
File base = new File(System.getProperty("java.io.tmpdir"));
Context rootContext = tomcatServer.addContext(this.contextPath, base.getAbsolutePath());
Tomcat.addServlet(rootContext, "httpHandlerServlet", servlet);
Tomcat.addServlet(rootContext, "httpHandlerServlet", servlet).setAsyncSupported(true);
rootContext.addServletMappingDecoded(this.servletMapping, "httpHandlerServlet");
if (wsListener != null) {
rootContext.addApplicationListener(wsListener.getName());