I have following configuration class:
@Configuration @PropertySource(name = \"props\", value = \"classpath:/app-config.properties\") @ComponentScan(\"service
In my case, depends-on="bean1" was within property-placeholder was causing the issue. I removed that dependency and used @PostConstruct to achieve the same original functionality and was able to read the new values too.