Almost every app today needs to store data it works with, and often apps use databases to manage the data they persist. For many years, relational databases have provided applications with a simple and elegant way to store data you can successfully apply in many scenarios. Spring apps, like other apps, often need to use databases to persist data, and for this reason, you need to learn how to implement such capabilities for your Spring apps.
In this chapter, we discuss what a data source is and the most straightforward way to make your Spring app work with a database. That straightforward way is the JdbcTemplate tool that Spring offers.