Requirement: I have to update .properties or .yml
file. Which is in parent module.
I have created spring boot custom library to get values from parent .properties or .yml
and communicate to third service to get Json data. That contain password. This password I have to update to properties file.
Our application not supporting spring-cloud. Reason for going custom library
From parent application
datasource:
url: jdbc:postgresql:URL
username: CURRENTUSER
password: CURRENT
Now i have to update property say 'datasoucrce.password=CURRENT' to 'datasoucrce.password=UPDATEDPASSWORD' in custom library.
From Custom Library application
datasource:
url: jdbc:postgresql:URL
username: UPDATEDUSER
password: UPDATEDPASSWORD
I have only one .yml file. But I have to update inherited datasoucrce.password="CURRENT"
to datasoucrce.password="UPDATEDPASSWORD"
This UPDATEDPASSWORD (value). I am getting from API call
Any help?