All modules

Module 3 · Configure

Configuration

Externalize every environment difference—properties, YAML, profiles, typed configuration binding, and secrets that never touch version control.

Foundation4 chapters75 minutesPrerequisite: Spring Boot fundamentals
Start module

Chapter plan

What you will complete

Module outcome

Ship one artifact into dev, test, and production with only the environment changing, and keep credentials out of the repository.

Mental model

Configuration is data the application reads at startup; environments differ in data, never in code.

Module checkpoint

Twelve-factor task API

Externalize ports, database URLs, feature flags, and SMTP credentials for three environments.

  • Same JAR boots dev and prod via profile plus env vars
  • Typed @ConfigurationProperties with validated values
  • No secret present anywhere under version control

Final module assessment

Ready to prove mastery?

Complete all 50 questions after finishing the module lessons and checkpoint.

Take module quiz