spring-cloud / spring-cloud/spring-cloud-config

Some suggestions for Refresh.refreshAll()

Open
#1,099 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Java
Stars
2k
Forks
1.3k
Avg merge
2d 59m
Merged PRs (30d)
16

Description

image

tag1. refreshes the common configuration for a single project, such as some constants, mappings, etc.

tag2. write component configuration for redis/datasource.

Since 1 tends to have a lot of k, v .then I don't confirm where the bean refresh, I have to choose refreshAll but this will refresh redis/datasource etc. But I don't want to refresh redis/datasource

I hope to consider adding the excloude("beanName") method to support it.

as follows:
refreshScope.refreshAll().exclude({'redis','datasource'});

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Refresh.refreshAll() entry point and the issue's distinction between common configuration and Redis or datasource configuration. Determine how bean refreshes are selected and what an exclusion API would need to specify; done means the requested behavior is defined and its effect on refreshAll is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.