CF Environment Variable Interpolation


Olga Reva
 

Since migration to Diego, our Spring Boot Applications cannot access properties defined in application.properties files like the following:

gateway.services.dashboard = ${vcap.services.dashboardService.credentials.url:http://localhost:8081}
gateway.credentials.dashboard.username=${vcap.services.dashboardService.credentials.username:username1}
gateway.credentials.dashboard.password=${vcap.services.dashboardService.credentials.password:pwd1}

I.e. app try to connect to http://localhost:8081 instead of using of predefined variables vcap.services.dashboardService.credentials.url...

How to change configs to access variables using vcap.services...
?
Can anybody help me?

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.