What you are doing here is setting the default default profile (the profile that is used on any bean if you don't specify the @Profile annotation) to be production.
What you actually need to do is set the default active profile, which is done like this:
spring.profiles.active=production