I have a configuration file with fields where should values be injected. I have one property:
@Value("${other.app.start.script:}")
private String startScript;
The value which injects in this property is smth like this:
/app/${version}/otherAppStarter.bat
So, Spring is trying to resolve ${version} when Context is starting. But I need this value be resolved at other time during some processes will run. And the ${version} might be changed during the main app is working.
Is there any way to tell Spring not to resolve ${version} placeholder. I can change ${version} to something like #[version] then Spring will not resolve this placeholder, but maybe there is the way to use some native Spring features.
Thank You!