This commit is contained in:
xiangwb
2018-01-23 16:46:16 +08:00
parent 97347b0576
commit c100deaa9c
5 changed files with 55 additions and 6 deletions
@@ -64,7 +64,7 @@ public class DispatcherServletConfig extends WebMvcConfigurerAdapter {
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("login.html");
registry.addRedirectViewController("doc", "swagger-ui.html");
//添加更多
//添加更多......
registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
super.addViewControllers(registry);
}