Spring Profiles is useful tool for leveraging different configurations without needs to change it manually
It could be useful, for example, to have production profile with credentials to production database, and local profile with your local credentials. This example could be extended.
For now we need to have two profiles, e.g. debug and cloud.
Debug profile will be used for debugging (and\or local purposes) with simple credentials like 1234 and enabled debugging features.
Cloud profile will be used in future for deploying to AWS and there is going to be production credentials that should be secured.
Acceptance Criteria
Created empty Debug and Cloud Profiles
Created documentation for profiles
Explained to teammembers how to change profiles via Edit configurations...
Tested profiles, e.g. server.port for debug is 8888 and for cloud is 8080.
Technical Details
Application configuration should be located in boot module
Explore what is Spring Profile
Explore needs of Spring Profiles
Explore how to set up Spring Profiles (not via .properties!!)
Context
production
profile with credentials to production database, andlocal
profile with your local credentials. This example could be extended.debug
andcloud
.1234
and enabled debugging features.Acceptance Criteria
Debug
andCloud
ProfilesEdit configurations...
Technical Details