You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather a documentation suggestion, than a code bug.
Documentation says that property bindings should be declared in kebab-case, but injecting camelCase names works as well (compatibility mode ?), using regular @Value or @ConfigurationProperties - just for initial load only. This is not the case for @Refreshable and automated refresh of @ConfigurationProperties beans.
Actual Behaviour
If @Refreshable("camelCase") is used, the annotated object is NOT refreshed on camel-case or camelCase property change; similarly if @ConfigurationProperties("camelCase") is used, then the bean IS initially loaded, but subsequent refresh event for camel-case property does not re-load that configuration bean's values.
The documentation could warn to strictly adhere to kebab-case here. It's hard to spot since it is an exception from otherwise relexad behaviour in other places, so it could be at least documented.
Expected Behavior
Rather a documentation suggestion, than a code bug.
Documentation says that property bindings should be declared in kebab-case, but injecting camelCase names works as well (compatibility mode ?), using regular
@Value
or@ConfigurationProperties
- just for initial load only. This is not the case for@Refreshable
and automated refresh of@ConfigurationProperties
beans.Actual Behaviour
If
@Refreshable("camelCase")
is used, the annotated object is NOT refreshed oncamel-case
orcamelCase
property change; similarly if@ConfigurationProperties("camelCase")
is used, then the bean IS initially loaded, but subsequent refresh event forcamel-case
property does not re-load that configuration bean's values.The documentation could warn to strictly adhere to kebab-case here. It's hard to spot since it is an exception from otherwise relexad behaviour in other places, so it could be at least documented.
Steps To Reproduce
camel-case.name
Environment Information
Example Application
No response
Version
4.7.6
The text was updated successfully, but these errors were encountered: