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
With Spring 6.2, 'name' doesn't contain the full placeholder 'safestore:///my/path' anymore but only 'safestore'.
I guess this is now considered as a default value as it resolves to '///my/path'.
Is this expected behavior with Spring 6.2? If so, how could I achieve the same behavior as before?
Note: my property source is recorded with
environment.getPropertySources().addAfter(
StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME,
new KhanPropertySource(PROPERTY_SOURCE_NAME));
The text was updated successfully, but these errors were encountered:
multanis63
changed the title
Property placeholder with colon now considered as default value
Property placeholder with colon now considered as default value since 6.2
Dec 23, 2024
: is a reserved keyword. The fact that you had to use your own property source to make this work is a sign that it isn't right. We've restored support purely because it used to be supported before but you should find a format that doesn't use the reserved keyword. Or you can escape it with \.
Prior to Spring 6.2 I used to have a property like:
my.prop: ${safestore:///my/path}
With a custom property source:
With Spring 6.2, 'name' doesn't contain the full placeholder 'safestore:///my/path' anymore but only 'safestore'.
I guess this is now considered as a default value as it resolves to '///my/path'.
Is this expected behavior with Spring 6.2? If so, how could I achieve the same behavior as before?
Note: my property source is recorded with
The text was updated successfully, but these errors were encountered: