最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Shared properties for Spring Cloud Config Server with Redis Backend - Stack Overflow

programmeradmin3浏览0评论

Having Spring Cloud Config Server v4.2.1 with Redis Backend I'm trying to configure common (shared) properties which should be available for all client application. There is an approach clearly described in Sharing Configuration With All Applications documentation and it do exactly what I need, but not for Redis backend.

I want @Value("${property}") in client applications to be resolved using config server without creating a hash field for every single application.

Am I missing something or is there any hack I can implement to achieve the desired behaviour?

PS: Creating a hash field with application name (like it is done for JDBC repository) using the following command in redis-cli doesn't work for me: HSET application property "value".

PPS: Setting spring.cloud.config.server.overrides.property="value" in config server application.properties file works, but doesn't satisfy my need, cause I want to change this value dynamically.

发布评论

评论列表(0)

  1. 暂无评论