mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-07 07:29:59 +00:00
Stop using Tomcat's deprecated addServletMappingDecoded() method
(cherry picked from commit 4f51801320)
This commit is contained in:
+1
-1
@@ -83,7 +83,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).setAsyncSupported(true);
|
||||
rootContext.addServletMappingDecoded(this.servletMapping, "httpHandlerServlet");
|
||||
rootContext.addServletMapping(this.servletMapping, "httpHandlerServlet", false);
|
||||
if (wsListener != null) {
|
||||
rootContext.addApplicationListener(wsListener.getName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user