I want my default active profile to be production if -Dspring.profiles.active is not set.
production
-Dspring.profiles.active
I tried the following in my application.pro
application.pro
Try this: @PropertySource("classpath:${spring.profiles.active:production}_file.properties")
@PropertySource("classpath:${spring.profiles.active:production}_file.properties")