Şöyle yaparız.
public class DatabasePropertiesEnvPostProcessor implements
  EnvironmentPostProcessor {
  @Override
  public void postProcessEnvironment(ConfigurableEnvironment environment,
    SpringApplication application) {
    Properties props = new Properties();
    props.put("spring.datasource.url", "<my value>"); 
    environment.getPropertySources().addFirst(
      new PropertiesPropertySource("dbProps", props));
  }
}org.springframework.context.ApplicationListener=com.DatabasePropertiesListener