From the course: Spring Boot 3 Essential Training

Unlock this course with a free trial

Join today to access over 24,300 courses taught by industry experts.

Configuration in Spring Boot

Configuration in Spring Boot

- [Instructor] Part of the operational power at Spring Boot comes from the various ways that you can change the configuration of an application either during runtime or during startup time, which is the most common mechanism. Again, there are many ways to configure properties for a Spring application, and there are rules about precedence, but we're going to talk about a couple of the most common. The application properties or application at YAML file provides very basic configuration. In my opinion, these two locations are good really only for development and demo purposes, because in reality, the types of configurations that you're going to put in a spring application are going to have so much variance based on the data center and the environment that you're running in. And while the YAML file gives you a little bit more control, both of them are really development focused, in my opinion. That being said, you can use them in production applications. Environment variables are very…

Contents