Spring Boot CRUD best practice with Annotations || Hibernate + MySQL || Live Demo

preview_player
Показать описание
Spring Boot CRUD best practice with Annotations || Hibernate + MySQL || Live Demo

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

Project Lombok Video :

How to create a Spring + hibernate project with spring hibernate mysql crud example.
It explains spring crud example with mysql. It explains crud spring boot.
Its one of the most asked spring interview questions.
It has live demo of spring crud application with spring hibernate crud example

We also learn to develop crud spring boot rest api s which are exposed through controllers
This is important from the spring interview questions and answers for experienced point of view

Also useful in spring boot interview questions

How to create CRUD in spring boot hibernate from scratch in Java interview questions written / intermediate round:
Using STS Create spring starter project and during creation select 3 dependencies:
spring boot starter jpa
spring boot starter web
mysql driver
lombok

Modify Java version accordingly.

Then Add following properties in application prop file

Then Create Entity package using following annotations:
@Entity
@Table
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
We will see these annotations used in CRUD in java interview questions

Spring boot interview questions :
The Architecture of the application you have worked upon.
Create a CRUD in 60 / 120 minutes. (Live)

Exception handling in Spring / Global exception handling
Spring Security end to end .

For Explain Architecture of your Application u worked on

This is one of the most asked interview question.
We all Work in IT Industry where we have some clients and we serve the request and they pay us.
Hence most of the Applications work on Client server Architecture

We can layer / split an application in a client server architecture as:
Presentation Logic
Business Logic
Data Source
We Usually have 3 Tier Architecture.

In this video of spring boot interview questions We Use programming language like java to implement Business logic on server.
Its further more modularised / divided into
Controller Layer - to create crud spring boot rest api
Business layer
DAO Layer

We have even covered crud spring boot rest api in this video from scratch

-------------------------------------------------------------------------------------------------------------------------------------

Code Decode Playlists

-------------------------------------------------------------------------------------------------------------------------------------
Subscriber and Follow Code Decode

-------------------------------------------------------------------------------------------------------------------------------------

#springBootCrud #Springboot #SpringBootInterviewQuestion #JavaInterviewQuestion
#codedecode
Рекомендации по теме
Комментарии
Автор

I am using springboot from last 4 months but with the responsEntity things i am impressed by your explanation ....thanks

irohan
Автор

I've been in love ever since I found your resources... mucho gracias for doing great justice to every java/spring boot task... you are loved. keep it up

aududaniels
Автор

Very nicely explain as always😍... Plz continue this.. add security, j unit, central exception handling, as well as spring actuator.. this playlist single handedly can be able to get ppl all the concept cleared practically.. thank you so much..🙏🙂.

priteshbohrade
Автор

Very useful. This is first time, i know how to use this responseEntity and advantages of the status types usage.

BaluKompalli
Автор

Thank you so much! These videos are really helpful. Thanks for your efforts! These live demo series actually helps to practice simultaneously.

sukunkusum
Автор

Eagerly waiting for the upcoming videos. Thank you so much for explaining the toughest topics in the easiest way.

psmondal
Автор

Great! Please continue with Spring Boot Live Demo series. I request you to show some live demo on microservices with types.

somendrasharma
Автор

It's nice, requesting to create a video on Unit test cases for all layers like Controller, Service, Repository, etc with JUnit and Mockito. Very much needed.

venkatasaikrishnak
Автор

Hello, thank you for making these videos. Please make CRUD videos for REST API using database along with Response Entity features. Also please make videos on validations provided in spring framework and how to create our own validations.

komalsingla
Автор

Very informative and quick learning. There are couple of points which you should follow to make it more interesting.
1. In update you should take 200.
2. You should also implement rsql for pagination and search
3. Exception handling which you already mentioned
4. Auditing and logging... if possible take an AOP Concept as well.

punit
Автор

Hi, Thank you for such detailed explanation. I have a little problem related to the Auto generated id. After the rows 1and 2, the id is getting generated from 52 instead of 3. Is there a way to fix it or do I have to post manual id's instead to fix it?

anw
Автор

could not able to see inserted rows in DB. But Postman showing 201 created with empty json response. Since Data is not saved in DB its not able to fetch findById() and giving 404. Need help to set up the DB where i can monitor the records

abirchaudhary
Автор

Thank You So Much Mam, such a wonder full quick explanation...really great.. once again thanks

vigneshwaranm
Автор

Hi i was getting field crudrepo in employeservice require a bean named entityManagerFactory


Can u please resolve it

tejaswiniakula
Автор

Please create video on Rest with annotatons.Yours videos are very helpfull. Thanks!!

ManishSingh-yieu
Автор

Good video. Cover all topics and for MySQL installation also show all steps how to install and connect because some new beginner won't be able to setup project

ManojKumar-kvpu
Автор

Great create a vedio on Exception Handling in Spring Boot

paswini
Автор

Direct fetching via Spring Data using findById()
Direct fetching via EntityManager using find()
Direct fetching via Hibernate Session.load()

In real time, which one is preferred ma'm?

aadiraj
Автор

Love your videos. Helps to understand the toughest subject matters quite easily. Appreciate if you can do a tutorial on writing test cases for the above services using Junit. Keep up the good work. All the best!

dinelikarunathilaka
Автор

Good content and amazingly explained 😊

rahulvijay