Profiles and precedence
On This Lesson 4 topics
The content for this lesson is written and waiting for review. The outline below shows what it covers. It will be published once it is approved.
In this lesson
explain which value wins and how environments differ.
Planned topics
- A profile is a named set of settings, such as
dev,test,prod. - Precedence: the more specific or later source wins.
- Typical order, weakest to strongest: defaults in the file, profile file, environment variable, command-line option.
- Frameworks (like Spring Boot, later) define this order; read their documentation (verify before recording).
- Document the order in the README.
Draft outline details
Demonstration
a table: source / strength. For example application.yml < application-prod.yml < env var < command line.
Check your understanding
If the file says 0.19 and the env var says 0.07, which wins?
Show answer
The environment variable.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.