Use forward:/index.html for home page

Fixes gh-549
This commit is contained in:
Dave Syer
2014-03-22 14:20:53 +00:00
parent 632290a4bf
commit e472e7ccca

View File

@@ -238,7 +238,8 @@ public class WebMvcAutoConfiguration {
catch (IOException ex) {
// Ignore
}
registry.addViewController("/").setViewName("/index.html");
// Use forward: prefix so that no view resolution is done
registry.addViewController("/").setViewName("forward:/index.html");
return;
}
}