Creating Java REST API with Spring Boot , Spring Data JPA and MySQL | REST API CRUD Operations
Connecting Spring Boot Application with Database can be daunting for Java developers. Hence, let us learn how to build and connect Java REST API with Spring Boot , Spring Data JPA and MySQL, extremely helpful for backend java developers. In this session, CRUD will be implemented and data will be stored in MySQL database. Data will also be updated, fetched and deleted from mysql. We will learn how to configure MySQL database for Spring Boot REST API using application.yaml and implement Service and Repository patterns for establishing communication between Spring Boot REST API and MySQL database. Spring Boot Project code structure for REST API is explained. Finally application will be tested by Postman tool and MySQL Workbench. Data exchange format will be used as JSON. Some key Spring Boot and Spring JPA annotations - @SpringBootApplication , @RestController , @RequestBody , @RequestMapping , @GetMapping , @PostMapping , @PutMapping , @DeleteMapping , @Entity , @Table, @Id , @Service, @Override Spring Boot REST API project with data persistence in the MySQL for Cloud Vendor Information Service with all 4 CRUD operations are developed in this session. Spring data JPA and Spring Boot methods save() , findById(), findAll(), deleteById() are used. CRUD operations will be implemented in this session with saving, fetching/ querying and deleting data from MySQL database. Spring Boot is widely used for developing Microservices. GitHub repository link for the Cloud Vendor Service Code is - https://github.com/thinkconstructive/rest-api-spring-boot-demo/tree/master Session for Controller Layer operations - Create, Read, Update and Delete - All 4 REST API CRUD operations are implemented in below session. Kindly refer below link - https://youtu.be/iBGkJln9BPo Java Spring Boot with MySQL using Spring Data JPA Tutorial with custom method is mentioned below - https://youtu.be/xl5xxbp5vcE Kindly subscribe to the channel for getting regular updates of the new sessions on Software / Computer Application topics by clicking below link - https://www.youtube.com/channel/UCzmtevVkHLAvs4xMSHNr4sA?sub_confirmation=1 Follow me on - - Official Website: https://thinkconstructive.com/ - Twitter: https://twitter.com/TConstructive - LinkedIn: https://www.linkedin.com/in/eshapuri/ Some Good Books - Atomic Habits - https://amzn.to/3yEzGU5 Rich Dad Poor Dad - https://amzn.to/3LhaG87 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:00 Welcome Note 00:01:07 Recap - Spring Boot, Spring Data JPA and MySQL 00:03:23 Cloud Vendor Scenario , REST API and Client Explanation 00:04:34 Spring Boot REST API Project Structure Explanation 00:08:42 Create Spring Boot Project using Spring Initializer with all Dependencies 00:11:13 pom.xml Dependencies 00:14:35 Create and Configure application.yaml / application.yml 00:18:07 MySQL Workbench Schema Verification 00:19:31 Maven Dependency refresh 00:19:53 Add @Entitiy , @Table and @Id Annotations to Model Class 00:22:32 Controller Layer Explanation 00:24:37 Create Repository with JpaRepository 00:27:22 Create Service Interface for CRUD and GetAll 00:31:52 Service Implementation @Service - CRUD and GetAll methods Implementation 00:41:21 Implement Controller CRUD and GetAll methods 00:49:33 Starting Spring Boot Application 00:50:22 Detailed testing Create , Read , Update , Delete ( CRUD ) and ReadAll using Postman and MySQL Workbench 01:00:09 Summary 01:02:57 Thank You Note #springboot #restapi #java #thinkconstructive #eshapuri Queries how to build spring boot application how to implement rest api using spring boot how to implement java rest api using spring boot how to implement crud operations using rest api and spring boot how to implement crud operations using java rest api and spring boot how to connect mysql with spring boot how to connect mysql with spring boot and spring data jpa how to store data in mysql using spring boot rest api how to test rest api with postman how to test crud rest api how to use spring initializer what is spring boot what is rest api what is postman what is mysql workbench how to create application.yaml how to create application.yml how to configure application.yaml how to fetch data from mysql and spring boot what is spring boot rest api project architecture how to arrange spring boot rest api code what is controller layer what is service layer what is repository layer how to write getall rest api with spring boot how to write get rest api with spring boot how to write delete rest api with spring boot how to write create rest api with spring boot how to write update rest api with spring boot
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.