title: Spring changing the properties file in runtime
body: <p>I'm using Spring Boot and I have a properties file p.properties:</p>
  
  <pre><code>p1 = some val1
  p2 = some val2
  </code></pre>
  
  <p>Configuration class:</p>
  
  <pre><code>@Configuration
  @PropertySource("classpath:p.properties")
  public class myProperties {
  
      public myProperties () {
          super();
      }
  
      @Bean
      public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
          return new PropertySourcesPlaceholderConfigurer();
      }
  }
  </code></pre>
  
  <p>And I'm using this in order to access the property:</p>
  
  <pre><code>@Value("${p1}")
  private String mProperty;
  </code></pre>
  
  <p>Everything works great.
  I want to change p1 in p.properties file from outside of the app and the next time that I'll use mProperty, it will contains the new value without restarting the app.
  Is it possible?</p>
  
  <p>Thanks,
  Avi</p>