1.

What is the use of Profiles in spring boot?

Answer»

While developing the application we deal with multiple environments such as dev, QA, PROD, and each ENVIRONMENT requires a different CONFIGURATION. For eg., we might be using an embedded H2 database for dev but for prod, we might have proprietary Oracle or DB2. Even if DBMS is the same across the environment, the URLS will be different.

To make this EASY and clean, Spring has the provision of Profiles to keep the separate configuration of environments.



Discussion

No Comment Found