spring-projects / spring-projects/spring-boot

Allow ConfigDataLoader & EnvironmentPostProcessor to opt-out in AOT refreshed contexts

Open
#32,110 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

theme: aot type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

Preparing the Environment in a Spring Boot application have various forms depending on what's on the classpath. This can trigger HTTP calls to remote config server for instance. Wavefront also negotiates an API token if none is found.

In the latter case, it's obviously wrong to do that at build-time as the API token will not be used as we're evaluating conditions and not instantiating beans. Having the ability to know that the environment is prepared for an Ahead-of-time context optimization will allows those components to react accordingly.

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 tracing how ConfigDataLoader and EnvironmentPostProcessor participate in preparing the Environment for AOT-refreshed contexts. Define how those components can detect build-time evaluation, then verify that remote configuration calls and token negotiation are skipped there while normal runtime preparation remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
build-system, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.