Polish "Auto-configure templated welcome page"
Closes gh-10545
This commit is contained in:
@@ -1952,9 +1952,7 @@ By default, resources are mapped on `+/**+`, but you can tune that with the
|
||||
You can also customize the static resource locations by using the
|
||||
`spring.resources.static-locations` property (replacing the default values with a list of
|
||||
directory locations). The root Servlet context path `"/"` is automatically added as a
|
||||
location as well. If you do this, the default welcome page detection switches to your
|
||||
custom locations. So, if there is an `index.html` in any of your locations on startup, it
|
||||
is the home page of the application.
|
||||
location as well.
|
||||
|
||||
In addition to the '`standard`' static resource locations mentioned earlier, a special
|
||||
case is made for http://www.webjars.org/[Webjars content]. Any resources with a path in
|
||||
@@ -2022,6 +2020,13 @@ post] and in Spring Framework's
|
||||
{spring-reference}web.html#mvc-config-static-resources[reference documentation].
|
||||
====
|
||||
|
||||
[[boot-features-spring-mvc-welcome-page]]
|
||||
==== Welcome Page
|
||||
Spring Boot support both static and templated welcome pages. It first looks for an
|
||||
`index.html` file in the configured static content locations. If one is not found, it
|
||||
then looks for an `index` template. If either is found it is automatically used as the
|
||||
welcome page of the application.
|
||||
|
||||
|
||||
|
||||
[[boot-features-spring-mvc-favicon]]
|
||||
|
||||
Reference in New Issue
Block a user