Java – what is a good way to keep application properties?
•
Java
I have a series of application properties, all of which have different types
Types can include Boolean values, dates, timestamps, or strings
I need to be able to provide administrative users with the ability to change these attributes and let the system remember / save them to a file
I'm looking for a best practice way to store these application properties and be able to keep them when they change and load them at startup
Solution
Message from the future: the link is dead
Java has tools built specifically for this purpose - properties This is a very good article about it
https://docs.oracle.com/javase/tutorial/essential/environment/properties.html
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码