OA板块整合与实现

This commit is contained in:
lijiaqi 2023-02-23 15:54:20 +08:00
parent 0cee91d90a
commit b6a55e5534
2 changed files with 5 additions and 3 deletions

View File

@ -19,13 +19,15 @@ public class SaTokenConfig implements WebMvcConfigurer {
@Override @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { 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/"); registry.addResourceHandler("/upload/**").addResourceLocations("file:" + System.getProperty("user.dir") + "/upload/");
} }
@Override @Override
public void addViewControllers(ViewControllerRegistry registry) { public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("dist/index.html"); registry.addRedirectViewController("/","/index1/");
registry.addViewController("/index1/").setViewName("dist/index.html");
} }