< Previous Challenge - Home - Next Challenge >
The Spring Boot application uses JPA and supports both in memory databases as well as MySQL. In this challenge we'll put our database on Azure while the code is running locally. Taking baby steps :)
Create an Azure Database for MySQL and make sure that the application (which is still running locally) can connect to it without changing any code.
- Verify the application is working by creating a new owner, a new pet and a new visit
- Connect to the database through a
mysql
client - Verify that the tables include the newly created entities (owner/pet/visit)
- No files should be modified for this challenge
In order to find resources in Azure (existing or to be created) you can use the Search bar in the portal, look for the text bar at the top which you can activate by pressing the keys G
and /
at the same time.
Azure Cloud Shell includes a bunch of various tools, including a mysql
client.
And note that you can also pass configuration information to Spring Boot through environment variables.