title: How can I change a property in spring environment?
body: <p>I'm using the spring Environment Bean in my application to get the application configuration properties.
  I want to change the value of a property in the spring Environment from java code without restarting the application server. How can I do that?</p>
  
  <pre><code>@Service
  public void MyService {
      @Autowired
      private Environment environment;
  
      public void doSomething(){
          String value = environment.getProperty("myproperty");
          ...
      }
  }
  </code></pre>