Closes gh-11327
This commit is contained in:
Johnny Lim
2017-12-12 23:45:25 +09:00
committed by Stephane Nicoll
parent 14bc52f481
commit de72f2ae32
8 changed files with 17 additions and 31 deletions

View File

@@ -400,17 +400,17 @@ content into your application. Rather, pick only the properties that you need.
# SPRING RESOURCES HANDLING ({sc-spring-boot-autoconfigure}/web/ResourceProperties.{sc-ext}[ResourceProperties])
spring.resources.add-mappings=true # Whether to enable default resource handling.
spring.resources.cache.cachecontrol.cache-private= # Indicate that the response message is intended for a single user and must not be stored by a shared cache.
spring.resources.cache.cachecontrol.cache-public= # Indicate that any cache may store the response.
spring.resources.cache.cachecontrol.max-age= # Maximum time the response should be cached, in seconds if no duration suffix is not specified.
spring.resources.cache.cachecontrol.must-revalidate= # Indicate that once it has become stale, a cache must not use the response without re-validating it with the server.
spring.resources.cache.cachecontrol.no-cache= # Indicate that the cached response can be reused only if re-validated with the server.
spring.resources.cache.cachecontrol.no-store= # Indicate to not cache the response in any case.
spring.resources.cache.cachecontrol.must-revalidate= # Indicate that once it has become stale, a cache must not use the response without re-validating it with the server.
spring.resources.cache.cachecontrol.no-transform= # Indicate intermediaries (caches and others) that they should not transform the response content.
spring.resources.cache.cachecontrol.cache-public= # Indicate that any cache may store the response.
spring.resources.cache.cachecontrol.cache-private= # Indicate that the response message is intended for a single user and must not be stored by a shared cache.
spring.resources.cache.cachecontrol.proxy-revalidate= # Same meaning as the "must-revalidate" directive, except that it does not apply to private caches.
spring.resources.cache.cachecontrol.stale-while-revalidate= # Maximum time the response can be served after it becomes stale, in seconds if no duration suffix is not specified.
spring.resources.cache.cachecontrol.stale-if-error= # Maximum time the response may be used when errors are encountered, in seconds if no duration suffix is not specified.
spring.resources.cache.cachecontrol.s-max-age= # Maximum time the response should be cached by shared caches, in seconds if no duration suffix is not specified.
spring.resources.cache.cachecontrol.stale-if-error= # Maximum time the response may be used when errors are encountered, in seconds if no duration suffix is not specified.
spring.resources.cache.cachecontrol.stale-while-revalidate= # Maximum time the response can be served after it becomes stale, in seconds if no duration suffix is not specified.
spring.resources.cache.period= # Cache period for the resources served by the resource handler. If a duration suffix is not specified, seconds will be used.
spring.resources.chain.cache=true # Whether to enable caching in the Resource chain.
spring.resources.chain.enabled= # Whether to enable the Spring Resource Handling chain. By default, disabled unless at least one strategy has been enabled.

View File

@@ -67,13 +67,13 @@ The following technology-agnostic endpoints are available:
|`auditevents`
|Exposes audit events information for the current application.
|`beans`
|Displays a complete list of all the Spring beans in your application.
|`conditions`
|Showing the conditions that were evaluated on configuration and auto-configuration
classes and the reasons why they did or did not match.
|`beans`
|Displays a complete list of all the Spring beans in your application.
|`configprops`
|Displays a collated list of all `@ConfigurationProperties`.
@@ -281,7 +281,7 @@ Here's an example that remaps `/actuator/health` to `/healthcheck`:
[source,properties,indent=0]
----
management.endpoints.web.base-path=/
management.endpoints.path-mapping.health=healthcheck
management.endpoints.web.path-mapping.health=healthcheck
----

View File

@@ -2022,7 +2022,7 @@ post] and in Spring Framework's
[[boot-features-spring-mvc-welcome-page]]
==== Welcome Page
Spring Boot support both static and templated welcome pages. It first looks for an
Spring Boot supports 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.