From e8b6e902c2ea7252698ea0805f63e9fbcfb65eea Mon Sep 17 00:00:00 2001 From: zhangshuai Date: Thu, 8 Aug 2024 14:13:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=20index.html=20?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/geedge/asw/common/config/GUIHistoryRouterFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/geedge/asw/common/config/GUIHistoryRouterFilter.java b/src/main/java/net/geedge/asw/common/config/GUIHistoryRouterFilter.java index a6e2a6f..2ffc225 100644 --- a/src/main/java/net/geedge/asw/common/config/GUIHistoryRouterFilter.java +++ b/src/main/java/net/geedge/asw/common/config/GUIHistoryRouterFilter.java @@ -37,7 +37,7 @@ public class GUIHistoryRouterFilter extends OncePerRequestFilter { if (!matches) { // If the path does not start with any of the specified prefixes, return index.html - Resource resource = resourceLoader.getResource("classpath:public/index.html"); + Resource resource = resourceLoader.getResource("classpath:./public/index.html"); response.setContentType("text/html"); response.setCharacterEncoding("UTF-8"); Files.copy(resource.getFile().toPath(), response.getOutputStream());