title: Spring boot keep properties even after new deploy
body: <p>Currently, I am sending app crashes logs of Android app via HTTP to my server (acra) and my server saves them in properties like this:</p>
  <pre class="lang-java prettyprint-override"><code>@RestController
  public class EndlessBlowReportController {
      
      public int counter;
  
      @Autowired
      public static final Properties defaultProperties = new Properties();
  
      @PostMapping(&quot;/add_report&quot;)
      public void addReport(@RequestBody String report) {
          try {
              JSONObject jsonObject = new JSONObject(report);
              defaultProperties.put(counter, report);
              counter++;
  
          } catch (Exception ex) {
              System.out.println(ex.getMessage());
          }
      }
  
      @GetMapping(&quot;/get_reports&quot;)
      public List&lt;String&gt; getReports() {
          List&lt;String&gt; reports = new ArrayList&lt;&gt;();
          try {
              for(int i=0;i&lt;defaultProperties.size();i++) {
              reports.add((String)defaultProperties.get(i));
              }
          } catch (Exception ex) {
          }
          return reports;
      }
  }
  </code></pre>
  <p>and it works fine until I deploy a new version of the server.</p>
  <p>How can I keep my properties even after deploy?</p>