Posted in Web Override Spring Boot yaml property via environment variable July 30, 2025 I can override that value at runtime with an environment variable named spring.datasource.url and my application will connect to the database specified in the env var. https://stackoverflow.com/questions/70267751/override-spring-boot-yaml-property-via-environment-variable