You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application.yml config file in a Spring Boot 2.2.4 app with the following entry:
spring.datasource.url: ${DATA_SOURCE_URL}
DATA_SOURCE_URL is available only when running the app locally, not in the cloud.
In the cloud (Pivotal Cloud Foundry) we have a PostgreSQL service that injects the data source connection properties automatically using Spring Cloud Connectors. This work perfectly in 2.2.4.
When bumping up the Spring Boot version to 2.2.5 the app won't start:
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'DATA_SOURCE_URL' in value "${DATA_SOURCE_URL}"