diff --git a/2.2.x/reference/html/index.html b/2.2.x/reference/html/index.html index 4dd96767..6855d300 100644 --- a/2.2.x/reference/html/index.html +++ b/2.2.x/reference/html/index.html @@ -186,7 +186,8 @@ $(addBlockSwitches);
  • 4.3. Configuration
  • -
  • 5. Configuration Properties
  • +
  • 5. CachedRandomPropertySource
  • +
  • 6. Configuration Properties
  • @@ -1931,7 +1932,28 @@ for example, in case of -

    5. Configuration Properties

    +

    5. CachedRandomPropertySource

    +
    +
    +

    Spring Cloud Context provides a PropertySource that caches random values based on a key. Outside of the caching +functionality it works the same as Spring Boot’s RandomValuePropertySource. +This random value might be useful in the case where you want a random value that is consistent even after the Spring Application +context restarts. The property value takes the form of cachedrandom.[yourkey].[type] where yourkey is the key in the cache. The type value can +be any type supported by Spring Boot’s RandomValuePropertySource.

    +
    +
    +
    +
    +
    +
    myrandom=${cachedrandom.appname.value}
    +
    +
    +
    +
    +
    + +
    +

    6. Configuration Properties

    To see the list of all Spring Cloud Commons related configuration properties please check the Appendix page.

    diff --git a/2.2.x/reference/html/spring-cloud-commons.html b/2.2.x/reference/html/spring-cloud-commons.html index 4dd96767..6855d300 100644 --- a/2.2.x/reference/html/spring-cloud-commons.html +++ b/2.2.x/reference/html/spring-cloud-commons.html @@ -186,7 +186,8 @@ $(addBlockSwitches);
  • 4.3. Configuration
  • -
  • 5. Configuration Properties
  • +
  • 5. CachedRandomPropertySource
  • +
  • 6. Configuration Properties
  • @@ -1931,7 +1932,28 @@ for example, in case of -

    5. Configuration Properties

    +

    5. CachedRandomPropertySource

    +
    +
    +

    Spring Cloud Context provides a PropertySource that caches random values based on a key. Outside of the caching +functionality it works the same as Spring Boot’s RandomValuePropertySource. +This random value might be useful in the case where you want a random value that is consistent even after the Spring Application +context restarts. The property value takes the form of cachedrandom.[yourkey].[type] where yourkey is the key in the cache. The type value can +be any type supported by Spring Boot’s RandomValuePropertySource.

    +
    +
    +
    +
    +
    +
    myrandom=${cachedrandom.appname.value}
    +
    +
    +
    +
    +
    +
    +
    +

    6. Configuration Properties

    To see the list of all Spring Cloud Commons related configuration properties please check the Appendix page.