Workspace Configuration
Let's take a look at the project structure.
After the project has been imported, a view of the project structure is shown in Figure 17-4.
Configure database schema
After you have installed MySQL, create a new schema named spring using the MySQL Workbench, as shown in Figure 17-5. Please note that the database is arbitrary, and any other database can be used in place of MySQL. The code has been tested only on MySQL, so other databases may require small tweaks.
Verify and add the credentials in datasource.properties
file
The credentials are pre-configured in the datasource.properties
file and have two instances, one for main and the other for test. You can verify them, as shown in Figure 17-6 ...