I've got several Spring Boot applications. All of them are maven projects and in all of them, I have separate configuration files for different environments, like application.properties, application-dev.properties, application-uat.properties. When I run the application on from IDE it sometimes reads from application.properties file and sometimes from application-dev.properties file. I use IntelliJ IDEA for development and I haven't been able to figure out what determines which file to read from. Is it IDE dependent or is there some configuration in Spring that decides which properties file to pick?