title: Properties file load and write is not working
body: <p>Hi guys I am having problems with writing on a properties file. The properties file can be loaded without any problem and the key value can be changed but after I have store it with a fileoutoutstream it seems it did its job but there is no change on the properties file. </p>
  
  <pre><code>Resource resource = new ClassPathResource("application.properties");
  Properties props = PropertiesLoaderUtils.loadProperties(resource);
  props.setProperty("image.path", "empty");
  OutputStream propOut = new FileOutputStream(new File("application.properties"));
  props.store(propOut, "User change");
  propOut.close();
  </code></pre>
  
  <p>I am trying it in a Spring project. The file application.properties cannot be changed and there is no error so I can have any clue about the problem.</p>
  
  <p>What do you think I am missing? Any help will be much appreciated. Cheers</p>