title: Replace environment variables in Spring properties file other than application.properties
body: <p>Spring Boot will automatically resolve any <code>${ENV}</code> placeholders in <code>application.properties</code> files, with the respective environment variable.</p>
  
  <p>However such resolution will not happen when I provide a <code>quartz.properties</code> through a <code>PropertiesFactoryBean</code> file for Quartz configuration.</p>
  
  <pre><code>@Bean
  public Properties getQuartzProperties() throws IOException {
      PropertiesFactoryBean propertiesFactoryBean = new PropertiesFactoryBean();
      propertiesFactoryBean.setLocation(new ClassPathResource("/quartz.properties"));
      propertiesFactoryBean.afterPropertiesSet();
      return propertiesFactoryBean.getObject();
  }
  </code></pre>
  
  <p>Is there any Spring way of replacing these environment variables in the property file without utilising an external library?</p>