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 @@
- +