#A Simple application to setup Profiles in Spring Boot
- To run the application use the following command for dev environment
mvn spring-boot:run -Dspring-boot.run.profiles=dev
- For staging environment the command would be
mvn spring-boot:run -Dspring-boot.run.profiles=staging
Described in detail on following Link