Spring Boot 2.2.x Example project illustrating:
- how to use command line arguments with Apache common-cli
- how to use spring profile
- Clone project from GitHub
- Import in Eclipse as maven project
- Use JUnit test
To build for a specific environment setting active one of the Spring profiles:
- mvn clean package -P{target-profile}
Where {target-profile} can be test (by default if no -P build argument specified) or prod