0

I'm intending to write an executable JAR file (from command line) that will be run on scheduled base. After every run, some data needs to be stored in a file and evaluated in the next run (last run timestamp and some other values).

I was planing to store that values in application.properties since some other configuration data is already stored there. But after doing some research I'm getting the impression that the purpose of application.properties is to provide configuration values in read-only fasion.

So is it possible to update the application.propoerties file during runtime by the executable itself or should I use another approach?

llasarov
  • 2,064
  • 5
  • 27
  • 40
  • maybe take a look at this stackoverflow post: https://stackoverflow.com/questions/32058814/spring-boot-custom-variables-in-application-properties – roediGERhard May 08 '23 at 13:23

0 Answers0