How to Use Profiles in Spring Boot

Gain Java Knowledge
3 min readNov 17, 2020

In this story we will learn how to use Profiles in Spring Boot Application.

Every enterprise application has many environments, like:

Dev | Test | Stage | Prod | UAT / Pre-Prod

Each environment requires a configurations that is specific to them. These environments host specific configurations called Profiles.

In this story I will create a simple spring boot project and will demonstrate how to setup Profiles for your Spring Boot application.

--

--

Gain Java Knowledge

The Java programming language is one of the most popular languages today. Stay up to date with news, certifications, free learning resources and much more.