Configuring an Application with Spring Boot
In the previous chapter, we learned how to test various aspects of an application, including web controllers, repositories, and domain objects. We also explored security-path testing, as well as using Testcontainers to emulate production.
In this chapter, we’ll learn how to configure our application, which is a critical piece of application development. While at first glance this may sound like setting a handful of properties, there is a deeper concept at play.
Our code needs a connection to the real world. In this sense, we’re talking about anything our application connects to: databases, message brokers, authentication systems, external services, and more. The details needed to point our application at a given database or message broker are contained in these property settings. By making application configuration a first-class citizen in Spring Boot, application deployment becomes versatile.
The point of this chapter...