Jose Diaz
Jose Diaz

Reputation: 5398

Modifying Properties files in Tomcat

Is it possible to modify a .properties file in Tomcat, that is to add properties to it, instead of just reading them?

Upvotes: 1

Views: 202

Answers (1)

BalusC
BalusC

Reputation: 1109755

You can use Properties#load() to load them into a modifiable map-like structure. After modifying using Properties#setProperty() you can just use Properties#store() to save it back.


See also:

Upvotes: 2

Related Questions