Тёмный

Connecting with Database using JPA | Spring Boot Rest API tutorial | Spring boot tutorial 

Learn Code With Durgesh
Подписаться 286 тыс.
Просмотров 122 тыс.
50% 1

Connecting with Database using JPA | Spring Boot Rest API tutorial | Spring boot tutorial
#springboot #spring boot tutorial
Download Source Code: learncodewithdurgesh.com/cour...
Spring-boot full playlist: • Spring Boot Tutorial i...
Spring MVC playlist: • Spring MVC Tutorial St...
Spring framework playlist: • Spring Framework Tutor...
MySQL in one video: • Learn MySQL in one vid...
Telegram Link for Doubt: t.me/learncodewithdurgesh
Important Videos:
➡️React JS with Project: • 🔥 🔥 Complete React Js ...
➡️Learn JDBC in one video: • JDBC Crash Course in 1...
➡️Learn Python in One Video: • Learn Python in One Vi...
➡️Learn HTML in one video: • Jquery in one video in...
➡️Learn HTML form in one video: • Jquery in one video in...
➡️Learn JavaScript in one videos: • Learn JavaScript in O...
➡️Learn Form Validation using javascript and jquery: • Form Validation using ...
➡️Learn CSS in one video: • Jquery in one video in...
➡️Jquery in one video: • Jquery in one video in...
➡️Kotlin is one video: • Kotlin | Learn Kotlin ...
➡️Complete Python Project - RU-vid downloader in one video: • Jquery in one video in...
Important Playlist:
➡️Spring Boot Tutorial with Project : • Spring Boot Tutorial i...
➡️Spring MVC Tutorial: • Spring MVC Tutorial St...
➡️Complete Spring Framework Tutorial: • Spring Framework Tutor...
➡️Hibernate Tutorials: • Hibernate Tutorial for...
➡️E-Commerce Project using Java: • E-Commerce Project usi...
➡️AWS Free Java Hosting Playlist: • AWS Hosting Tutorial |...
➡️Hibernate Tutorial Playlist: • Hibernate Tutorial for...
➡️Learn Technology in One Vides: • Learn in one video : C...
➡️Programming Tips for Programmers: • Coding Tips and Discus...
➡️Complete Python for Beginners: • Complete Python Tutori...
➡️Important Python Projects: • Python Projects in Hindi
➡️Complete Servlet & JSP : • Servlet and Jsp (Serve...
➡️Complete JDBC ( Java Database Connectivity) : • JDBC(Java Database Con...
➡️Complete Java Project : TechBlog: • Full Java Advance Pro...
➡️Java Swing Projects: • Java Projects for begi...
➡️Java Core Concepts: • Java Core Tutorial
➡️Kya aap Jante hai Series: • kya app jante hai : s...
Important Links:
👉Official Website (Source Code): learncodewithdurgesh.com/
👉Telegram Discussion Group: t.me/learncodewithdurgesh
👉Follow me on Instagram: / durgesh_k_t
👉Follow on Facebook / learncodewithdurgesh
Gear that I use:
Gears that I Use:
Lenovo Ideapad S145 AMD Ryzen 5 15.6
amzn.to/33Vvxu2
Mic for Recording
amzn.to/305hgtr
amzn.to/2EyFMfa
Disclaimer:
All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

Опубликовано:

 

28 авг 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 112   
@shoiabalam2170
@shoiabalam2170 8 месяцев назад
bro there are some people they just want to earn money by youtube and some time they don't explain many things and skip. you are not one of them. you are explaining every thing i am understanding everything step by step.
@GopalDas-sw6ym
@GopalDas-sw6ym Год назад
Sir ... I am big fan of you... I have learnt basic idea from you and easily how can we write a program. Just sir Awesome.... your style is unique. like a primary key ... not possible anything without you.....Sir please help us to get videos for programming in java for preparing product base company like Google, Microsoft, facebook etc. I am dame sure if I get basic product base company programming's videos then we can clear all rounds. Sir please help.........Thanks from my heart and love u always....
@AkashVerma-hi3uq
@AkashVerma-hi3uq 2 года назад
Thank you so much for this amazing tutorial.
@rahemanrf5775
@rahemanrf5775 Год назад
Thank you brother it worked..!
@ManojKumar-tj4lg
@ManojKumar-tj4lg Год назад
Thank you Sir, very helpfull videos
@nainitalhills4280
@nainitalhills4280 Год назад
If we have any id having data type as String still while writing entities wr will mention as ID as a primary key?
@rohandxt17
@rohandxt17 2 года назад
for mysql default port is 3306 , you have taken 3307 it will throw error on compile time . Happened same with me then i changed to 3306 back
@yogesh9282
@yogesh9282 2 года назад
Thanks You for this man!
@pawansingh-xo1iz
@pawansingh-xo1iz 2 года назад
3306 is the default port number provided by MySQL.
@deepakrathour3570
@deepakrathour3570 6 месяцев назад
Thanks bro, I was also stuck there
@biswabijayeechandrasekhara4506
@biswabijayeechandrasekhara4506 3 года назад
Can u pls help me in uploading and downloading PDFs,images to MySQL database using spring boot.....I have tried some methods bt methods are not working and also I am not getting any exceptions for which I am not able to detect the bug in my code....pls help....
@mohammadshahul9026
@mohammadshahul9026 2 года назад
Now i am so happy for not using fake service Thanks
@aakashchavhan905
@aakashchavhan905 2 месяца назад
Thank you sir
@tushar351
@tushar351 3 года назад
what if i want to store one jsp form data to multiple entity class!??
@Vinu-Arts
@Vinu-Arts 10 месяцев назад
Thank you so much sir..............
@akadeadahot7067
@akadeadahot7067 Год назад
at the end data base mai data insert krna hai and retrive bhi toh staic list se achha woh yahi video se sikh lete the hum log and rahi bat other concepts ki woh bhi issi video mai clear ho jate thee.........mia 18 se 22 videos ki bat kr raha hu. please comment on it durgesh sir
@gulshanrajput5956
@gulshanrajput5956 3 года назад
superb content
@abhinavborkar6296
@abhinavborkar6296 Год назад
Superb bro😮
@suficst6941
@suficst6941 2 года назад
VERY NICE SIR
@danishchaush3000
@danishchaush3000 3 года назад
Sir can you make video same curd operation using visual Studio code ide but all the jar files should be ofline
@rajanpokhrel7825
@rajanpokhrel7825 3 года назад
Hello Durgesh, You made a change in @GetMapping getBooks(--). But you did the post in postman and got the 201 Created Status(19-23)
@piyushthakur2019
@piyushthakur2019 10 месяцев назад
sir u are amazing
@adityajaiswal5603
@adityajaiswal5603 7 месяцев назад
Good one
@funnyvideorocks
@funnyvideorocks 3 года назад
Sir i have many problem to install my sql on my windows 8 32 bit .
@prashantrajput8471
@prashantrajput8471 2 года назад
Hello sir. one dout here , how the oject of bookrepo is being created and you haven't used any annotation niether @Component ,@Service nor @Repository. Please reply
@sunnykakrani7830
@sunnykakrani7830 2 года назад
bookrepository is an interface and its implementation class object will be created by IOC Container . I think
@anshul90100
@anshul90100 2 года назад
please make tutorial with Redis Cache, It will be too helpful
@neerajpandey8499
@neerajpandey8499 3 года назад
Sir how to get default page while launching the application.... without changing the url manually.....
@anshuakansha2976
@anshuakansha2976 2 года назад
how to decide which maven dependency to add
@akhilgupta6926
@akhilgupta6926 2 года назад
Sir I want to create custom primary key using JPA in spring boot
@yogesh7569
@yogesh7569 10 месяцев назад
Hello sir, do you know how to configure connection with druid database
@krishnaxettrt7625
@krishnaxettrt7625 3 года назад
thanks sir
@pawansingh-xo1iz
@pawansingh-xo1iz 2 года назад
sir i got error while creating the book using POST. It shows me NullPointerException but after using try and catch block data is not saving in the youtube_api's book table
@prakashdwivedi5900
@prakashdwivedi5900 Год назад
Getting same problem. If anyone know then help me please
@user-dg6zm7yn1x
@user-dg6zm7yn1x 7 месяцев назад
Sir, I am not getting @Entity and @GeneratedValue annotations im my IDE, How to get it?
@miitthakar9117
@miitthakar9117 Год назад
Sir why are we not marking the bookRepository as @Component as we @autowire it in bookService ?
@poojarath7087
@poojarath7087 19 дней назад
yes , i made @Repository in BookRepository class , otherwise i was getting some error in service class
@santoshyadav11111
@santoshyadav11111 Год назад
java.lang.IllegalArgumentException: Entity must not be null show error please tell me sir how to solve this problem
@AbidHussain-vo9cw
@AbidHussain-vo9cw 3 года назад
why you created the findById method sir! isn't it the default method of CrudRepository interface?
@rahulprasad7400
@rahulprasad7400 Год назад
Please let me know this ans. I have the same doubt that CrudRepository is an interface itself by why you have written body of FindById() as we know that we can get this method by CrudRepository itself. Please ans
@gulshanrajput5956
@gulshanrajput5956 3 года назад
sir am waiting for the make the project via spring boot for fast development
@RanveerSingh-yz3fv
@RanveerSingh-yz3fv 3 года назад
sir is this ths end of spring boot?
@pankajsharma-rf1ov
@pankajsharma-rf1ov 3 года назад
sir please deal with query with multiple databases in spring boot
@ritikrstgi
@ritikrstgi 5 месяцев назад
Can any one explain why there is need of creating an abstract method findbyId specially in interface while others methods like save, deleteById is method is not declare in interface and my compiler is also shown error.
@poojarath7087
@poojarath7087 19 дней назад
yes , it is because save() return type is Entity class . deleteById() return type is void . But findById() retrun type is Optional , so basically, we are overriding this method in interface by giving return type as Entity class .
@nishanthedaoo8937
@nishanthedaoo8937 3 года назад
Hello sir, Yaha par photos ko kaise upload kare ? Thank you sir
@manojbhale6081
@manojbhale6081 3 года назад
Sir plz spring transaction pr video bnaiye
@shashankingle22
@shashankingle22 3 года назад
Sir please start MongoDB lecture series
@rahulprasad7400
@rahulprasad7400 Год назад
@Durgesh sir , Please ap ye doubt clear kro ke apne CrudRepository m FindById () q use keya h apne ? CrudRepository is an interface and it contains implementation of create,read/retrieve, update and delete then what is the use to just providing body of FindById () in CrudRepository interface. Anyone please help me here
@user-ts4ul7xc8f
@user-ts4ul7xc8f 11 месяцев назад
CrudRepository have FindById of type Optional but we need of type Book
@BGMICLASHES
@BGMICLASHES 7 месяцев назад
Bro it’s a custom finder method please watch the previous video
@prashantbhawsar7186
@prashantbhawsar7186 2 года назад
great++++++
@mdmobashermoin6531
@mdmobashermoin6531 3 года назад
Sir database connection m problem ho rha h help kryega ?
@asynccoder7675
@asynccoder7675 Год назад
sir why i am not getting autosuggestion in application.properties file else its working fine in other parts of project please tell me i am a big fan of your 🤧
@poojarath7087
@poojarath7087 19 дней назад
R u using Spring Suit tool ?
@shadovekiller8688
@shadovekiller8688 Год назад
I am getting an error under //get all books on line 29 saying Cannot cast from Iterable to List tried multiple times getting the same please help me to get through this issue
@BGMICLASHES
@BGMICLASHES 7 месяцев назад
See I think it’s not possible because we can’t cast parent class obj into child class
@harshshub
@harshshub Месяц назад
if u give password to my sql then we write in app properties root as a password, if u dont give any password then dont write it it give u error.
@omkaramrutdash6704
@omkaramrutdash6704 2 года назад
please did this with h2 memory database
@susmithanadar4034
@susmithanadar4034 Год назад
How do you have so vast knowledge on so many technologies?
@mohdarsalan7195
@mohdarsalan7195 4 месяца назад
ma'em could you please help me in this regards ?
@ashishsenapati3901
@ashishsenapati3901 3 года назад
Sir i am getting empty object though i hv data in database.. It is not showing any error and the statuses are correct.. But it is returning empty objects.. Plz help..
@national3737
@national3737 3 года назад
mere m white label error arhi h
@priyankchaturvedi7296
@priyankchaturvedi7296 3 года назад
add method ka requestmapping ("/book") check karo , mera ye hai tumhara dekhlo controller me jakr then postman me post select kro
@hrushikeshshinde9527
@hrushikeshshinde9527 6 месяцев назад
What is mean by iterable
@mayankrajput5458
@mayankrajput5458 2 года назад
why did we make find book by id in the repository and not in service??
@poojarath7087
@poojarath7087 19 дней назад
We can make it , but we will have one problem as findById() returns Optional but we need entity class object .So method overriding happened in repository class .
@ishusuryavanshi8435
@ishusuryavanshi8435 3 года назад
sir next video kb aayge
@rashmimaulekhi2962
@rashmimaulekhi2962 3 года назад
In application.properties this line needs to be added-->spring.jpa.hibernate.ddl-auto=create, else error is coming that table not found
@sunnykosle8865
@sunnykosle8865 3 года назад
hy i am sunny kosle i am getting some problem can you please fix my bugs
@RohitYadav-yl9jr
@RohitYadav-yl9jr 3 года назад
U explained very well.....thank u...... But i hv question how do we handle with 2 db.
@GajananaGanjigatti
@GajananaGanjigatti 2 года назад
you have to add @Configuration and have two separate configuration for each dbs
@shubhamjain5369
@shubhamjain5369 3 года назад
sir BookRepository ka object kaise ban skta hai bo to interface hai and BookRepository k upar koi annotation bhi nhi lagayi jabki BookService ko Autowired kiya hai BookController me to BookService k upar apne @component annotation use ki hai ..................Any one help me plz
@pritamsamanta9298
@pritamsamanta9298 3 года назад
use @Repository annotation on top of BookRepository class
@grandselenium296
@grandselenium296 2 года назад
I think it should work without annotation on Repository interface. Perhaps you have not made the dao package with the right path like com.api.book.dao.BookRepository. That was my problem and after the right path, I didn't get error like "Consider defining a bean of type 'dao.BookRepository' in your configuration."
@Him857
@Him857 2 года назад
@Service bhi use kro ge toh obj ban jaaye ga
@harshitgupta2872
@harshitgupta2872 Год назад
here you are not taking Optional when using findById() function
@sscode3809
@sscode3809 9 месяцев назад
Hey if your database value not inserted than you use the your Book repository interface @Repository annotation than problems is solve try this....👈🌟
@sachinkumarrajput5450
@sachinkumarrajput5450 2 года назад
Agar update mai aise I'd update krege to database mai faltu entries badh jayegi
@user-tj2su6my2e
@user-tj2su6my2e 9 месяцев назад
Make sure you are not autowiring static variable it will fail.
@premtanmay1857
@premtanmay1857 5 месяцев назад
sir can you upload this raw code
@aniketverma3615
@aniketverma3615 11 месяцев назад
SIR MERE CODE TABLE NAHI BAN RAHI
@RanveerSingh-yz3fv
@RanveerSingh-yz3fv 3 года назад
sir source code kha mile ...kisi ko pta h toh plz btaae
@travis3366
@travis3366 Год назад
what is 3307 here?
@himanshuvaishya9164
@himanshuvaishya9164 8 месяцев назад
sir update karne ke bad entry duplicate ban ja rahi hai ..aur kisika ho rah h aisa
@neerajgarg9096
@neerajgarg9096 7 месяцев назад
Bhai vo islie ho rha kyunki jo book ki id hai vo auto generated hai toh agr hm kuch b update krte hai to tun book ki id ya toh vo wali id daalo jis book ko update kr rhe ho aur vo id data base me same ho... Kyunki database me book ki id 1,2,3 bn rhi hai naa ki jo hum de rhe hai jaise 12, 24 ye nhi hai book id ... Hope so tum smze hoge...
@aabhasjain96
@aabhasjain96 7 месяцев назад
make sure ke URL me jo id hai aur body me jo id hai vo dono same ho
@Yash_Jain06
@Yash_Jain06 3 месяца назад
Why someone will buy your source code, while other youtube are giving free and you are asking student to pay for source code, Teacher.
@tusharbaranwal7661
@tusharbaranwal7661 Год назад
Sir I got the error (required a bean of type com.tushar.myappvs.dao.boorepository )that could not be found
@umeshwalunjkar7682
@umeshwalunjkar7682 7 месяцев назад
Worst IDE VS code ...I am not able to code properly
@kvnagendra5354
@kvnagendra5354 2 года назад
Bro im dislikin it. Only bcz of many ads
@rambabukumar2730
@rambabukumar2730 2 года назад
500, "error": "Internal Server Error", "trace": "java.lang.StackOverflowError \tat com.ram.api.Controller.MyController.addcourse(MyController.java:38) \tat com.ram.api.Controller.MyController. sir i am facing thids error , how can i solve it. please reply me sir .
@mdrehan4all
@mdrehan4all Год назад
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
@sameerkadgaye3745
@sameerkadgaye3745 3 года назад
Thank you sir
Далее
Spring Data JPA Tutorial | Full In-depth Course
2:20:14
Просмотров 376 тыс.
D3 BMW XM LABEL Король.
31:52
Просмотров 296 тыс.
Spring Boot JDBC using JdbcTemplate
29:39
Просмотров 65 тыс.
What is JPA? | JPA Implementation
26:21
Просмотров 378 тыс.