From b6a55e55349189be34503fe04a04ed99d743a766 Mon Sep 17 00:00:00 2001 From: lijiaqi Date: Thu, 23 Feb 2023 15:54:20 +0800 Subject: [PATCH] =?UTF-8?q?OA=E6=9D=BF=E5=9D=97=E6=95=B4=E5=90=88=E4=B8=8E?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ydool/platform/saToken/config/SaTokenConfig.java | 6 ++++-- src/main/resources/html/dist/index.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ydool/platform/saToken/config/SaTokenConfig.java b/src/main/java/com/ydool/platform/saToken/config/SaTokenConfig.java index 2fc8ad5..1c0f824 100644 --- a/src/main/java/com/ydool/platform/saToken/config/SaTokenConfig.java +++ b/src/main/java/com/ydool/platform/saToken/config/SaTokenConfig.java @@ -19,13 +19,15 @@ public class SaTokenConfig implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { - registry.addResourceHandler("/assets/**").addResourceLocations("classpath:/html/dist/assets/"); + registry.addResourceHandler("/index1/assets/**").addResourceLocations("classpath:/html/dist/assets/"); registry.addResourceHandler("/upload/**").addResourceLocations("file:" + System.getProperty("user.dir") + "/upload/"); } @Override public void addViewControllers(ViewControllerRegistry registry) { - registry.addViewController("/").setViewName("dist/index.html"); + registry.addRedirectViewController("/","/index1/"); + registry.addViewController("/index1/").setViewName("dist/index.html"); + } diff --git a/src/main/resources/html/dist/index.html b/src/main/resources/html/dist/index.html index 273d28f..59d74fe 100644 --- a/src/main/resources/html/dist/index.html +++ b/src/main/resources/html/dist/index.html @@ -36,7 +36,7 @@
- +