SpringBoot Day2: Profiles

Arthur Lee
2 min readFeb 23, 2019

--

The benefits for Profiles

Flexible configuration based on environment

valuable in real-world, multi-environment deployments

Good for live vs. cold prod domains

Using application.yml

using yml instead of properties

Package

run mvn clean package

Run with dev environment

Check the result in port 8000

Run with test environment

Check the result in port 9000

--

--

Arthur Lee
Arthur Lee

Written by Arthur Lee

An machine learning engineer in Bay Area in the United States

No responses yet