How do I change the values of application.yaml at runtime e.g I have a server address property that I would like to change at runtime
server: address: 192.168.1.100
I assume this is a spring application, if so you can use the jvm arguments (-D) to override the values from application.yaml file. e.g application.yaml
server:
address: 192.168.0.1
cmd line
java -jar -Dserver.address=10.10.0.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With