When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

Spring Boot Fundamentals: Connecting to Database
Unlock creativity with Skillshare! Learn acrylic painting, AI writing, graphic design, and photography.
Free

This Course Includes
skillshare
0 (0 reviews )
36 minutes
english
Online - Self Paced
course
SkillShare
About Spring Boot Fundamentals: Connecting to Database
Course Overview
Roadmap
Audience
Prerequisites
Tools
Demo: App Preview
Demo: Integrating with H2 database
Demo: Schema Initialization and Connection Pooling
Demo: Implementing CRUD operations
Demo: Adding Thymeleaf pages for adding/updating and deleting items
Demo: Switching to MySQL database
Summary
What You Will Learn?
- Connecting to a backend database is an essential part of any application in order to persist data. Spring Boot and Spring framework makes this extremely easy and efficient. .
- In this course we will continue building our Spring MVC app we started building in the course Spring Boot Fundamentals: Creating a Spring MVC app and connect it to a backend database using Spring Data JPA’s repositories. .
- we will first use H2, an open-source in-memory database as a backend store.We will show how we can make Spring Boot load starter sql scripts to create our tables, insert data upon startup, which is useful when testing or prototyping.We will add the repository layer to our app to implement CRUD operations and we will see how Spring data JPA makes it so easy..
- We will add thymeleaf pages for adding / deleting and updating inventory.
- Next we will switch the backend database to be Mysql. We will show how easy it is to switch to MySQL with literally changing a few properties and requiring no code change at all.We will also take a look at connection pooling along the way..