Quantcast
Channel: Dynamically set all properties files at runtime: - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Dynamically set all properties files at runtime:

$
0
0

I am trying to dynamically set all properties at run-time in a java spring application. I am successfully doing that with program arguments/System Properties (a different SO post explaining this in detail here), but I haven't figured out a way to dynamically read all properties in .properties files and edit their values. The property sources stored under the spring application context do not contain properties in the previously mentioned files.

Is it possible to load up a spring app and before creating any beans, step in and edit the values across all properties files being loaded in the project?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images