package cn.cetc54.platform.core.config;
|
|
import org.springframework.core.Ordered;
|
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
/**
|
* @author xfei
|
* @date 2020/12/13
|
*/
|
public class IndexHtmlConfig extends WebMvcConfigurerAdapter {
|
@Override
|
public void addViewControllers(ViewControllerRegistry registry) {
|
registry.addViewController("/").setViewName("index");
|
registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
|
super.addViewControllers(registry);
|
}
|
}
|