Example of using Spring Profiles with @Component annotated classes and configuration files, specifically application.yml
ProductionMrBean
RowanAtkinson
Runs on port 7070.
mvn spring-boot:run -"Dspring.profiles.active=prod"
Runs on port 6969.
mvn spring-boot:run -"Dspring.profiles.active=dev"