A starting point for all future TIE Spring Boot 2 Projects
Do not store passwords inside src/main/resources or they will be included in production builds!
- clone
- import build.gradle in IDEA -> as new project
- enjoy
To add a test configuration make a copy of application.yml in src/test/resources and add param --spring.config.location= with both the bootstrap and application file i.e. --spring.config.location=\src\main\resources\bootstrap.yml,\src\test\resources\application.yml This mocks the production environment where the application config will be loaded from the config server, overwriting bootstrap.yml where applicable
For a personal configuration link to a copy outside the project
bootstrap.yml contains settings that should be equal across all projects application.yml contains app specific options, all custom (self-defined) properties must be commented
Follow the official deployment guide. Configurations from bootstrap.yml and application.yml will be ignored.