设置欢迎页

This commit is contained in:
ms group dev 2019-04-09 17:27:57 +08:00
parent d712b3ccfe
commit 15802e879c
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ public class WebConfig implements WebMvcConfigurer {
*/
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("forward:/html/1/index.html");
registry.addViewController("/").setViewName("forward:/index");
registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
WebMvcConfigurer.super.addViewControllers(registry);
}