Interacting with the database
In this recipe, we will look at how to integrate with a database to create, read, modify, and delete the data. For this, we will set up a MySQL database with the required table. Subsequently, we will update the data in a table from our Spring Boot application.Â
We will be using Windows as the development platform for this recipe. You can perform a similar action on Linux as well, but you would first have to set up your MySQL database.
Getting ready
Before we start integrating our application with the database, we need to set up the database locally on our development machines. In the subsequent sections, we will download and install MySQL tools and then create a sample table with some data, which we will use with our application.
Installing MySQL tools
First, download the MySQL installer from https://dev.mysql.com/downloads/windows/installer/5.7.html. This MySQL bundle is for Windows only. Follow the onscreen instructions to successfully install MySQL along with...