Spring Cloud Context 提供了一个基于键缓存随机值。在缓存之外
功能,它的工作方式与 Spring Boot 的RandomValuePropertySource相同。
如果您希望随机值即使在 Spring 应用程序之后也保持一致
context 重新启动。属性值采用 where is the key in the cache 的形式。值 can
是 Spring Boot 支持的 .PropertySourcecachedrandom.[yourkey].[type]yourkeytypeRandomValuePropertySource
myrandom=${cachedrandom.appname.value}