From 683f01c33bf47721fdf8a04fcd6dbb57360fb706 Mon Sep 17 00:00:00 2001 From: yxm-coding <71698303+yxm-coding@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DNetwork=E4=B8=AD=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=89=8D=E7=AB=AF=E8=B7=AF=E7=94=B1=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=9D=87=E6=8A=A5404=E9=94=99=E8=AF=AF=20#19?= =?UTF-8?q?82=20(#1985)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/tencent/supersonic/web/WebConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/launchers/common/src/main/java/com/tencent/supersonic/web/WebConfig.java b/launchers/common/src/main/java/com/tencent/supersonic/web/WebConfig.java index 1aa538d41..097939a65 100644 --- a/launchers/common/src/main/java/com/tencent/supersonic/web/WebConfig.java +++ b/launchers/common/src/main/java/com/tencent/supersonic/web/WebConfig.java @@ -19,5 +19,6 @@ public class WebConfig implements WebMvcConfigurer { public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("/").setViewName("redirect:/webapp/"); registry.addViewController("/webapp/").setViewName("forward:/webapp/index.html"); + registry.addViewController("/webapp/**/{path:[^\\.]*}").setViewName("forward:/webapp/index.html"); } }