Java Spring Boot with MySQL using Spring Data JPA Full Tutorial

Think Constructive
Think Constructive
16.6 هزار بار بازدید - 2 سال پیش - Let us learn how to
Let us learn how to save data and query data from MySQL database using Java Spring Boot with MySQL and Spring Data JPA. In this course, Spring Boot Application will be developed from beginning, application will be connected with MySQL using Spring Data JPA, a new table will be created in the database and following operation will be performed using Spring Data JPA, Spring Boot and MySQL connectivity -
Create / Persist / save()
Read / Fetch / find() / findById()
Delete / delete() / deleteById()
Count of total number of records / count()
We will see how to provide all the required dependencies using Spring Initializer,  how to configure Spring Boot Application for getting connected to MySQL database, and will create a complete Online Store Information Entity / Table for storing the data. We will also test the data using MySQL Workbench. A full application will be developed.
Key point of Spring Boot Application -
Easily create stand-alone, production-grade Spring based Applications
Tomcat, Jetty are embedded
Provides starter dependencies
Automatically configure Spring and third party libraries
Provides production ready features such as health checks, metrics, etc.
No code generation, No XML configuration
Important points related to Spring Data JPA -
Spring Data JPA, part of the larger Spring Data family, makes it easy to easily implement JPA based repositories.
Spring Data JPA aims to significantly improve the implementation of data access layers by reducing the effort to the amount that’s actually needed.
Developer needs to write repository interfaces, including custom finder methods, and Spring will provide the implementation automatically
Some key annotations used in this tutorial -
@SpringBootApplication = @EnableAutoConfiguration + @ComponentScan + @Configuration
@Entity
@Autowired
@Override
@Id
@GeneratedValue
Key point of MySQL -
Open source - RDBMS - Relational Database Management System
Easy to use
Reliable and scalable
Good for small and large enterprise level applications
Used by Facebook, Twitter, YouTube etc.

There is playlist for Java sessions below, please consider watching this -
Java 8 Features Explanation and Demon...

There are more technical sessions also available at this channel. Kindly consider watching them.
Kindly subscribe to the channel for getting regular updates of the new sessions/ courses on Software / Computer Application topics by clicking below link -
@thinkconstructive

About Me 😊
I am Esha Puri, founder of Think Constructive. I have almost 20 years of software industry experience. My main aim is to make software learning extremely simple for everyone. I will provide authentic software learning material here.
Follow me  -
- Official Website: https://thinkconstructive.com/
- Twitter: Twitter: TConstructive
- LinkedIn: LinkedIn: eshapuri

Support the channel with your Amazon purchase -
Good Books to spend your time with -
Atomic Habits - https://amzn.to/3yEzGU5
The Courage To Be Disliked - https://amzn.to/3wheVMz
Disclosure, I use affiliate Amazon links above. Purchasing through these links gives me a small commission to support videos on this channel -- the price to you is the same.

Chapters
00:00 Welcome Note
00:45 Spring Boot Overview
01:32 Spring Data JPA Overview
02:32 Spring Boot and Spring Data JPA Annotations
03:44 MySQL Overview
04:50 Online Store Information
05:52 Spring Boot Application using Spring Initializer with JPA and MySQL Dependencies
07:35 Spring Boot, Spring Data JPA and MySQL Dependencies in pom.xml
08:56 Spring Boot - MySQL Configuration in application.properties
12:13 Schema Review using MySQL Workbench
12:49 Spring Boot -  Entity Creation
16:26 Spring Boot -  Repository Creation
19:11 CommandLineRunner Implementation and Override run method
20:39 Autowired Repository and save() and find the record (findById()), Test using MySQL Workbench
25:32 Override toString() method for Store Information Entity
27:06 Create more Records (save()) and Use of Custom find/ fetch & Test using MySQL Workbench
34:27 Counting total number of records - count()
36:56 Delete record from MySQL and test using MySQL Workbench
39:16 Summary
39:43 Thank You

#springboot #springdatajpa #mysql #java #database #thinkconstructive  
Queries
how to develop spring boot application
how to develop spring boot application with spring data jpa
how to develop spring boot application with spring data jpa and mysql
how to develop spring boot application with mysql
how to develop spring boot application with mysql database
how to develop spring boot application with database
how to develop spring boot application with mysql and test
how to use mysql workbench
how to implement crudrepository
how to implement commandlinerunner
How to save, find and delete data from mysql
How to persist data in mysql
2 سال پیش در تاریخ 1401/04/20 منتشر شده است.
16,668 بـار بازدید شده
... بیشتر