From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Spring Profiles in Boot

Spring Profiles in Boot

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

Spring Profiles in Boot

- [Narrator] In real-world deployments, profiles can be one of the critical components of a spring application, and spring boot is no different. So let's talk for a moment about why profiles can be so important. So again, why our profiles are so important when we're dealing with it? Profiles give you the ability to flex your configuration based on the environment that the code is deployed to. It's really valuable in real-world, especially where you have many multi environment deployments. So thinking about the dev task, maybe a stage environment, a pre-prod and a prod, all of those environments may have a little bit different settings when it comes to the components that you're going to consume, and profiles in spring give you the power to do that without creating multiple containers. Finally, another use case that's not so common but is really very valuable is if you are running two different production domains.…

Contents