From e8be71d20499e794c890983962e3739c6508b889 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Sun, 11 Aug 2024 07:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../servlet/plugins/dispatcher/RequestDispatcherImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/servlet-core/src/main/java/tech/smartboot/servlet/plugins/dispatcher/RequestDispatcherImpl.java b/servlet-core/src/main/java/tech/smartboot/servlet/plugins/dispatcher/RequestDispatcherImpl.java index 2cb337d..d2de31d 100644 --- a/servlet-core/src/main/java/tech/smartboot/servlet/plugins/dispatcher/RequestDispatcherImpl.java +++ b/servlet-core/src/main/java/tech/smartboot/servlet/plugins/dispatcher/RequestDispatcherImpl.java @@ -105,6 +105,7 @@ public void forward(ServletRequest request, ServletResponse response, boolean na String[] array = StringUtils.split(dispatcherURL, "?"); requestWrapper.setRequestUri(array[0]); ServletMappingInfo servletMappingInfo = servletContext.getRuntime().getMappingProvider().match(array[0]); + requestWrapper.setServletMappingInfo(servletMappingInfo); handlerContext.setServletInfo(servletMappingInfo.getServletInfo()); Map parameters = new HashMap<>(); if (array.length > 1) {