I have a requirement where I get the DB URI, DB URL etc at runtime in JavaCode. This value needs to be available to application.properties for it to make a DB call.
I always used Spring boot to retrieve values assigned in application.properties file but not the other way How do I achieve something similar db.uri = {comingFromJavaCode}