This commit is contained in:
xiangwbs
2018-03-20 10:34:24 +08:00
parent 4a5589e0f1
commit 80aa201b5b
2 changed files with 5 additions and 1 deletions
@@ -65,9 +65,11 @@ public class DispatcherServletConfig extends WebMvcConfigurerAdapter {
*/
@Override
public void addViewControllers(ViewControllerRegistry registry) {
//路由配置
registry.addViewController("/").setViewName("login.html");
registry.addViewController("druid").setViewName("druid/index.html");
//重定向
registry.addRedirectViewController("doc", "swagger-ui.html");
//添加更多......
registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
super.addViewControllers(registry);
}
@@ -37,6 +37,8 @@ public class LoginInterceptor extends HandlerInterceptorAdapter {
set.add("/swagger-resources");
set.add("/configuration/ui");
set.add("/configuration/security");
//德鲁伊监控
set.add("/druid");
}
@Override