Skip to content

Clarify that configuration property default values are not available through the Environment#49835

Merged
snicoll merged 2 commits intospring-projects:3.5.xfrom
kodama-kcc:clarify-configprops-defaults
Mar 31, 2026
Merged

Clarify that configuration property default values are not available through the Environment#49835
snicoll merged 2 commits intospring-projects:3.5.xfrom
kodama-kcc:clarify-configprops-defaults

Conversation

@kodama-kcc
Copy link
Copy Markdown
Contributor

See gh-49654

Clarify in the documentation that default values defined in
@ConfigurationProperties classes are not reflected in the Environment.
This means application code using @Value, @ConditionalOnProperty,
or its own @ConfigurationProperties will not see those defaults.

@kodama-kcc kodama-kcc force-pushed the clarify-configprops-defaults branch from 9f479c2 to 9f01ed0 Compare March 29, 2026 06:06
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 29, 2026
@kodama-kcc kodama-kcc force-pushed the clarify-configprops-defaults branch from 9f01ed0 to 54a4858 Compare March 29, 2026 06:11
@wilkinsona wilkinsona added the type: documentation A documentation update label Mar 30, 2026
@wilkinsona wilkinsona changed the title Clarify that configprops defaults are not in the Environment Clarify that configuration property default values are not available through the Environment #49654 Mar 30, 2026
@wilkinsona wilkinsona removed the status: waiting-for-triage An issue we've not yet triaged label Mar 30, 2026
@wilkinsona wilkinsona added this to the 3.5.x milestone Mar 30, 2026
@wilkinsona wilkinsona changed the title Clarify that configuration property default values are not available through the Environment #49654 Clarify that configuration property default values are not available through the Environment Mar 30, 2026
@snicoll snicoll self-assigned this Mar 31, 2026
@snicoll snicoll modified the milestones: 3.5.x, 3.5.14 Mar 31, 2026
@snicoll snicoll force-pushed the clarify-configprops-defaults branch from 54a4858 to a5338e5 Compare March 31, 2026 08:30
@snicoll snicoll merged commit 6fe81dd into spring-projects:3.5.x Mar 31, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation A documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants