Skip to content

Tag: dotenv

Spring Boot App does not recognize environment variables in application.yml file

there. I’m new to Java Spring Boot and I’m trying to set environment variables in application.yml. I’ve added dotenv maven dependency: I’ve set variables in the .env file: And in my application.yml: While running application I’m getting jdbc error: java.lang.RuntimeException: Driver org.postgresql.Driver claims to not accept jdbcUrl, ${SPRING_DATABASE_URL} I’ve tried some solutions like: or in application.yml: or or Am I