OA板块整合与实现
This commit is contained in:
parent
0cee91d90a
commit
b6a55e5534
|
@ -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");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue