I have a spring boot application.
I have three profiles in my application-> development, staging and production. So I have 3 files
There's another way by setting the OS variable, SPRING_PROFILES_ACTIVE.
for eg :
SPRING_PROFILES_ACTIVE=dev gradle clean bootRun
Reference : How to set active Spring profiles