You can use environment variables in your application.properties file by using the spring.profiles.active property.