Loading tutorials
.properties syntax, have a Spring Boot project built with Maven or Gradle, and know what a Spring bean is. Binding to classes, profiles and precedence get their own chapters. Here the focus5 min read.properties files, you have a basic Spring Boot application built with Maven or Gradle, and you know how Spring beans and injection work. Here you learn how Spring Boot decides which value to use when the same key is defined in more than one place.5 min readapplication.yaml file. You should also know how Boot orders property sources, which an earlier chapter covered. Here you will read individual configuration values with @Value and with the4 min readapplication.yaml and .properties files, and that you have bound a record with @ConfigurationProperties. Here you will learn why one setting can be written several ways, which spelling to pick, and the mistakes that leave a value silently unset.4 min readapplication.yaml or application.properties, and that you have a basic idea of how Spring Boot ranks property sources. You should also know what a Spring bean is. Here you will learn how to change a single setting at launch time, without editing a file a5 min read.properties files. It also assumes you have a Spring Boot application, understand constructor injection, and know Java records. Relaxed binding, @Value, and the property precedence order were covered in earlier chapters. Validation has its own chapter, 4 min read@ConfigurationProperties class, as the previous chapter showed. It also assumes you know how property sources are ordered. Here you add validation, so a bad value stops the application at startup instead of failing later in produ4 min read.properties files. It covers what a profile is and every common way to turn one on. Profile-specific files, @Profile beans and profile groups eac5 min readapplication.yaml, can read YAML and .properties syntax, and know how to activate a profile with spring.profiles.active. Here you will learn the two ways Spring Boot lets you vary configuration by profile without code changes: separate files named aft4 min read@Configuration classes and @Bean methods, and that you know how to activate a profi4 min readapplication-prod.yaml) and @Profile beans. It also assumes you know that Spring Boot's later property sources override earlier ones. If any of that is new, review the chapters on profiles and profile-specif4 min readapplication.yaml is loaded, how property precedence works, and how profiles select files. It builds on the multi-document YAML and MailProperties examples from earlier chapters.4 min readDB_PASSWORD-style names to properties, and how @ConfigurationProperties binds values. It builds on those to show where credentials should live instead of in application.yaml.4 min read@ConfigurationProperties, validation and @Profile beans. It reuses the MailProperties record and the Notifier4 min read@ConfigurationProperties classes (see "Binding groups of properties with @ConfigurationProperties") and that you build with Maven or Gradle. By the end you will know how Spring Boot produces configuration metadata, what the metadata contains, and how to extend it4 min read@ConfigurationProperties binding works. It uses the app.mail example from earlier chapters. Here you will learn how to see which values the application is actually using, and which source 5 min read