Connect a Spring web server with a MySQL Database - Tutorial

Опубликовано: 23 Октябрь 2024
на канале: Aneesh Mistry
5,326
83

This video will look at how we can connect our Spring Boot Application with a MySQL Database.
We will use the Spring data-jpa package to leverage a connection and to provide out-of-the-box
methods and functionality to our controller.
At the end of this video, we will have created 2 REST endpoints that obtain data from our MySQL database, and present them to the user as a JSON response.

Link to source code: https://github.com/4neesh/YouTube-Cha...

🕒 Timestamps 🕒

00:00 - Introduction
00:24 - Create a model class
01:49 - Connect MySQL with Spring Boot
03:04 - Create an Entity Class
06:28 - Configuring Spring with MySQL
08:11 - Spring data JPA
09:37 - Create a Controller class
Please like, subscribe and leave a comment to let me know what you think!

Visit my website for all my blogs and videos on software engineering: www.aneesh.co.uk

Icon made by FreePik from www.flaticon.com