-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation around relaxed binding, @Value, and the canonical form of properties #20507
Comments
What if you do this?
|
@spencergibb |
That's because boot now translates external configuration into a canonical format, in this case, |
@spencergibb Perhaps you're referring to this part of the docs 24.7.5 @ConfigurationProperties vs. @Value. I believe it's misleading in the sense that it states |
The section of the documentation to which you have linked advises against using
Relaxed binding is a featured of Spring Boot's binder which is only using with Let's use this issue to see if we can clarify the documentation a bit. |
If an environment variable
DEMO_ITEM_PRICE=4
is set, we get:If an environment variable
DEMO_ITEMPRICE=4
is set, (disregarding Camel case) we get:Verified with 2.1.2.RELEASE. See attached demo app.
demo.zip
The text was updated successfully, but these errors were encountered: