Loading tutorials
.properties syntax. By the end you will be able to write both file formats and split one YAML file into per-profile sections.2 min read.properties files and have a running Spring Boot application. It builds on the application.yaml file from the previous chapter.2 min readapp.mail.* properties from application.yaml. Two tools read one property at a time: the @Value annotation and the Environment interface. Both read from the same merged1 min read.properties and YAML, know how @ConfigurationProperties records work, and have seen environment variables and command-line arguments override a setting.2 min read@Value for single values. Here you will bind a whole group of related properties to one typed object.1 min read@ConfigurationProperties class, as covered in the previous chapter. It also assumes you know how profiles override values.2 min read@Value work, and understand property precedence from the earlier chapters.2 min read.properties syntax, and that you know what a Spring profile is and how to activate one. Here you will see two ways to keep per-environment values in files.2 min read@Configuration class and inject beans. It also assumes you know how to activate a profile, as covered in the earlier chapters on profiles and profile-specific files.2 min read@Profile selects beans. Here you will learn how one profile can switch on several others.2 min readapplication.yaml is loaded, how property precedence works, and how profile-specific files are chosen. Here you will add more configuration sources to an application without changing the main file.2 min readspring.config.import loads extra files.2 min read@SpringBootTest, you know how application.yaml and @ConfigurationProperties work, and you have seen profiles. It uses the MailProperties record and the Notifier beans from earlier chapters.2 min read@ConfigurationProperties, as in the earlier chapters. It shows how Spring Boot describes those properties to your IDE so that application.yaml gets autocompletion, documentation popups and warnings about unknown keys.2 min read@ConfigurationProperties, and profiles from the earlier chapters. It covers how to see which values your running application is using and where each one came from.2 min read