I was trying to create a build for my production environment.In my spring web application, I have 4 .yml files
- application.yml
- application-development.yml
- application-staging.yml
- application-production.yml
In the application.yml file, I specified
spring:
profiles:
active: production
the command i am using maven to create a build is
mvn clean install tomcat7:deploy -B -Pproduction
In my target folder I can see all properties and my production settings in not come up.
What i am getting is my default application.yml properties. How to build correctly?