spring-cloud / spring-cloud/spring-cloud-commons
Avoid or document the pitfalls of the bootstrap context
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 751
- Forks
- 744
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
From what I've seen, the separate bootstrap context and its consequences continue to surprise users. The latest example is with disabling auto-configuration of Reactor's debug agent. I think it would be an improvement if users didn't have to know so much about the bootstrap context and its presence didn't require some configuration to move from application.yaml to bootstrap.yaml.
I can't recall the history of the context, but I wonder if it's still needed now that we have the environment post-processor extension point. If it is still needed, I wonder if it could be made a bit more "closed world" so that extensions that are really aimed at the main application context are not picked up by the bootstrap context. Failing that, documenting the problem and the need to move some configuration properties would help I think.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the bootstrap context behavior and the linked Reactor debug-agent example, then compare how configuration is loaded from application.yaml versus bootstrap.yaml. Determine whether the bootstrap context is still needed or whether its effects should instead be constrained or documented; done means one of those directions is agreed and its user-facing consequences are addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100