mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 00:29:01 +00:00
Use forward:/index.html for home page
Fixes gh-549
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user