Property file update with respective keys and value


(Deepthi ) #1

Hello everyone,

When a property file is updated with newly added values the value prints as output this has been done using arraylist. The thing is the newly added value need to be printed along with respective keys.

How this can be achieved.

Please suggest.

Thanks,
Deepthi


(App Shah) #2

Hi Deepthi -

Are you referring this tutorial: http://crunchify.com/java-properties-file-how-to-read-config-properties-values-in-java/

If yes, after every update, above program will print only new value. Make sure to do maven clean install after property update.

I noticed that, files under resources folder may not be auto cleaned in Eclipse.


Copyright © 2018 Crunchify, LLC.  •  WordPress Services  •  Contact  •  Hosted at DiscourseHosting.