Spring Boot | JPA | MVC | H2 Example

  Рет қаралды 235,660

Telusko

Telusko

6 жыл бұрын

Spring Full Course : courses.telusko.com/learn/Spr...
Spring Full Course (UDEMY) : www.udemy.com/spring-5-with-s...
Angular Full Course : courses.telusko.com/learn/Ang...
Spring Boot | JPA | MVC | H2 Example:- github.com/navinreddy20/Sprin...
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Check out our website: www.telusko.com
Follow Telusko on Twitter: / navinreddy20
Follow on Facebook:
Telusko : / teluskolearn. .
Navin Reddy : / navintelusko
Follow Navin Reddy on Instagram: / navinreddy20
Subscribe to our other channel:
Navin Reddy : kzbin.info/door/xmk...
Telusko Hindi :
kzbin.info/door/itz...
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
www.telusko.com/contactus

Пікірлер: 229
@samarthurs8000
@samarthurs8000 5 жыл бұрын
You're great. Simply Superb. The best part is you make videos with very less/no preparation. All on the fly spontaneously. Just a Genius bro!
@praveensharma8888
@praveensharma8888 5 жыл бұрын
I have started learning java from basic to advance and getting confidence just because of you. Your excitement level while making video makes more interest as a learner. You are my favorite. please keep sharing your knowledge. Big thumbs up :)
@awanishmishra9584
@awanishmishra9584 6 жыл бұрын
Please more and more video on spring boot..content are very good..and your teaching styles are awesome..good practical video on spring boot..and interview questions also
@KIDIYABRIAN
@KIDIYABRIAN 5 жыл бұрын
Thanks so much, if all lecturers in the world could teach like this, technology would be growing 10 times.
@Anyvid95
@Anyvid95 2 жыл бұрын
After Spring Boot 2.0 the data.sql should be import.sql. Hope someone find this useful. Btw this is an amazing tutorial.
@saranshagarwal8286
@saranshagarwal8286 2 жыл бұрын
Thank you so much for the tip.
@AndreGMendes
@AndreGMendes 2 жыл бұрын
Thanks! :)
@fourten660
@fourten660 2 жыл бұрын
Big thanks to bro =))
@kunalsingh-wb1ju
@kunalsingh-wb1ju 2 жыл бұрын
Thank you so much!!!! I LOVE YOU!!
@panchananturuk3887
@panchananturuk3887 2 жыл бұрын
Thank you so much bro ..Thanks for your tips it's working now
@kevin-ru6oe
@kevin-ru6oe 4 жыл бұрын
I had some problems starting this project, but one I solved those, I understand all perfectly. Good video.
@priyanga.c1065
@priyanga.c1065 3 жыл бұрын
You are a really awesome brother. We can easily learn a new framework just because of your teaching style and knowledge. Thanks a lot.
@vasuudayar3691
@vasuudayar3691 5 жыл бұрын
Thank you Sir , you make every topics simple and clean
@GodOfGizmos
@GodOfGizmos 6 жыл бұрын
Great Video Navin! I loved it, in memory database.. I used to think about inbuilt database & now I can use it. I am new to spring boot & I am loving it.
@larhchimismail3399
@larhchimismail3399 3 жыл бұрын
You're the best so far people just must watch and like thanks for your time sir!!
@vitormatos7483
@vitormatos7483 4 жыл бұрын
New versions of Spring + H2 doesn't create remote database at startup, for security reasons.
@evg.sidenko
@evg.sidenko 5 жыл бұрын
Thanks a lot! Great video and very detailed description.
@chinmaydas4053
@chinmaydas4053 6 жыл бұрын
Good topics discussed sir.. Many many thanks 🙏..
@youssefmoussa2523
@youssefmoussa2523 4 жыл бұрын
You are awesome man. You are the greatest alien i ever seen thanks a lot;
@kirtim1930
@kirtim1930 3 жыл бұрын
Nicely explained. Its really helpful.Thank you!
@olahomori5561
@olahomori5561 6 жыл бұрын
We'll be waiting for more videos 😊 I've been learning a lot..
@DhakaToDC
@DhakaToDC 6 жыл бұрын
Learn New things from every video, Thanks
@rajmodi1313
@rajmodi1313 5 жыл бұрын
Keep posting! We want more :)
@sunilbiswal5637
@sunilbiswal5637 5 жыл бұрын
really sir , u r doing good job,ur explantion is super
@curiously-cinnamon
@curiously-cinnamon Жыл бұрын
If you have created data.sql and written this query : Insert into alien values (101, 'Navin') Then you entered the h2-console and run the following query : Select * from alien And it only shows you an empty table with the column names AID and ANAME but no rows. Then add the following 3 lines in application.properties : spring.sql.init.mode=always spring.jpa.defer-datasource-initialization=true spring.jpa.hibernate.ddl-auto=create-drop After doing this, I was successfully able to insert values into database from data.sql
@akshatagarwal8125
@akshatagarwal8125 Ай бұрын
Still gives error
@shankarraj3433
@shankarraj3433 14 күн бұрын
Thanks a lot. After adding these 3 lines in the 'application.properties' file, I have successfully inserted values into database from the data.sql at Runtime.
@shankarraj3433
@shankarraj3433 14 күн бұрын
Thanks a lot, you have saved me a huge amount of time in resolving this issue.
@curiously-cinnamon
@curiously-cinnamon 14 күн бұрын
@@shankarraj3433 Happy to help! Made this comment more than a year ago, but I'm glad it's proving useful to someone!
@shankarraj3433
@shankarraj3433 14 күн бұрын
@@curiously-cinnamon Ya, it helped many. Thanks.
@salamansari145
@salamansari145 Жыл бұрын
Your explanation is very much interesting specially in term of technical things 👍🏻
@senthilkumars5243
@senthilkumars5243 5 жыл бұрын
Thank you sir, It's very helpful for us..
@sachingaikwad2939
@sachingaikwad2939 5 жыл бұрын
Thank you sir.. Your videos are very helpfull.
@krish5960
@krish5960 3 жыл бұрын
Chala easy way lo Cheptunnaru Navin :)
@vamsikrishna-rc5nt
@vamsikrishna-rc5nt 5 жыл бұрын
Hi sir, in the above program, we had created the text editor to execute the queries in h2 database. But if we use the database as mysql, where we have to execute the queries.
@neerajkashyap01
@neerajkashyap01 5 жыл бұрын
Very nicely explained.
@TejaDuggirala
@TejaDuggirala 5 жыл бұрын
Teluskunnanu. Thank you sir :)
@shankarraj3433
@shankarraj3433 14 күн бұрын
Thanks Mr. Navin.
@shubhammhatre4743
@shubhammhatre4743 5 жыл бұрын
When i hit the url ...it gives me whitelable error.. so i added @RequestMapping now its printing home.jsp on browser. i am not getting that name and id and submit form. I added home.jsp file in webapp folder as you show and even added jasper dependency. Please help
@sabyasachirout
@sabyasachirout 6 жыл бұрын
Thanks for the video. I have one concern. Where to write customized method or to solve complex operations or giving more no of parameterized method. Which are not part of Interface.
@ravijatwa240
@ravijatwa240 4 жыл бұрын
Navin Reddy great man!!
@Akshoysamir
@Akshoysamir 6 жыл бұрын
@Telusko Learnings Can u please tell me how to get colorful logs in the eclipse console. It would be very much helpful for us.
@queenskeleton4937
@queenskeleton4937 5 жыл бұрын
Too late but. Use Spring Tool Suite and run your webapps as Spring Boot Application
@akshaytalekar2307
@akshaytalekar2307 6 жыл бұрын
Thank you, sir You are great
@ajit287
@ajit287 6 жыл бұрын
Excellent sir.....keep going
@pickmusic9533
@pickmusic9533 3 жыл бұрын
Can we use multiple database engine (MySQL, PostgreSQL, Mongodb, DynamoDb) for single webpage at a time?
@elionaiesf
@elionaiesf 5 жыл бұрын
Very good Thanks!
@shilpachidura1287
@shilpachidura1287 5 жыл бұрын
Very nice video. Why AlienRepo class is not annotated with component but how autowire is still working ?
@arnabdas6089
@arnabdas6089 2 жыл бұрын
Man you are Great amd so is SpringBoot.:')
@nitinverma25
@nitinverma25 5 жыл бұрын
I must say, you are the best alien ;)
@shankars4281
@shankars4281 4 жыл бұрын
I have a question. AlienRepo extending CrudRepository interface. But which class is implementing CrudRepository interface ? without implementing it, can we use it like it ?
@freesoul2677
@freesoul2677 3 жыл бұрын
Thank you so much. I have one question, whenever I restart the server all of the submitted data are lost what should I do?
@ashishb1007
@ashishb1007 4 ай бұрын
Hi Naveen Sir, I have a question regarding the Alien repo, I saw that the repo is not annotated but still with Autowired annotation we were able to get that object inside the controller?
@RezaJafari1984
@RezaJafari1984 3 жыл бұрын
This is Perfection
@SrividyaNatarajan
@SrividyaNatarajan 5 жыл бұрын
Excellent...thq!
@nafazbenzema9714
@nafazbenzema9714 4 жыл бұрын
AlienRepo is a interface.how did you create instance for interface through Autowired Annotaion
@arunavdel86
@arunavdel86 6 жыл бұрын
Hi Navin... was going through your videos. Its very well expalined. But I am looking for a code which can fetch data from database using non-primary keys. Say for a Employee table(Empid (Primary key), Empname, EmpEmailId, EmpSalary) , I want to write a web rest service to fetch employee details by email id being passed as a path parameter. Any document or suggestion would be really helpful.
@jaiprakashnarayanjha8862
@jaiprakashnarayanjha8862 6 жыл бұрын
Sir, your explanations are superb!!! I get aid, but not getting aname in database while fetching through program jsp page. But while fetching through data.sql or directly in database I got both aid and aname. Could you please guide me. Thanks
@nidhinchacko6087
@nidhinchacko6087 4 жыл бұрын
Excellent!
@olahomori5561
@olahomori5561 6 жыл бұрын
Thank u for this.
@WisdomIsAwesome
@WisdomIsAwesome 3 жыл бұрын
For the record, the 1000th like was mine.
@keerthipatisurendra8284
@keerthipatisurendra8284 4 жыл бұрын
how can we put auto-generated id's while deploying the app itself insert into alien values('sk'); now the id's should automatically inserted
@6977202865
@6977202865 4 жыл бұрын
BRILLIANT!!!!!
@antrohydon0426
@antrohydon0426 6 жыл бұрын
super bro...
@sumeshsuseelan7695
@sumeshsuseelan7695 2 жыл бұрын
Thank you so much!!!
@jatinsareen7771
@jatinsareen7771 6 жыл бұрын
which is the best screen recorder for laptop
@aneckumar5701
@aneckumar5701 2 жыл бұрын
I have a Question that AlienRepo is not annotated with @Component annotation then how come Autowiring of the same Object happening?
@sunnychouhan1228
@sunnychouhan1228 6 жыл бұрын
How does repository save the data ,as it is the interface and we have not implemented it any where...please explain
@Icc_18
@Icc_18 3 жыл бұрын
When I hit the url it is showing whitelabel error page. The console is displaying an error as: An established connection was aborted by the software in your host machine. What should I do?
@adilsaju
@adilsaju 4 жыл бұрын
Awesome!
@gunjanrathore8101
@gunjanrathore8101 5 жыл бұрын
Can anyone please tell me why are we not using @Component in AlienRepo interface, as we are using @Autowired while creating object of this interface in lnside controller.
@meenakshisundaram3231
@meenakshisundaram3231 6 жыл бұрын
Very nice sir
@prasadg7463
@prasadg7463 4 жыл бұрын
Hello Sir, I'm having a problem while inserting data through sql file. The data is not inserted in the columns in order. It builds table with fields in alphabetical order. For example, Table[id,name,college] but it creates as Table[id,college,name]. Please help me to solve this.
@budgettravelwitharzoo2446
@budgettravelwitharzoo2446 4 жыл бұрын
what is the use of @responsebody controller?
@ujjawalsharma5549
@ujjawalsharma5549 4 жыл бұрын
I want to use MySQL instead of H2 database in this project, how can I do that?
@prannavkrishna1004
@prannavkrishna1004 5 жыл бұрын
Thank you vmuch
@carlixprincipe
@carlixprincipe 5 жыл бұрын
Correct the classpath of your application so that it contains a single, compatible version of org.apache.tomcat.util.file.ConfigFileLoader How do i get this error?
@RiteshSingh-gq6hh
@RiteshSingh-gq6hh 3 жыл бұрын
sir when i am adding datasource.url in application.properties and try to run this program it gives me error A file path that is implicitly relative to the current working directory is not allowed in the database URL
@iamchiranjeevin
@iamchiranjeevin 6 жыл бұрын
I just now knew that a new runtime database named H2 Exists in a world lol ..but thanks anyway bro :D
@hariomsinha6894
@hariomsinha6894 4 жыл бұрын
can you tell me how to retrieve data from the h2 db?
@MetaJINX00
@MetaJINX00 2 жыл бұрын
i have doubt that how jpa is capturing the values which you added in the name and id fields?
@deepakm3839
@deepakm3839 2 жыл бұрын
After creating data.sql file I am encountered with this error, Exception encountered during context initialization - cancelling refresh attempt:
@akshaynikam9960
@akshaynikam9960 3 жыл бұрын
Hello Sir, can you explain what you did at 2.35, how to make that form tag?, I am new learner, so far enjoying your content.
@omarabuzaid9642
@omarabuzaid9642 2 жыл бұрын
at min 4:17 when I run , it gives me the same error , I think I have a problem in request mapping, I wrote same as you , so is it a problem because of the application properties?? or what should I change to run it
@jelenastefanovic4902
@jelenastefanovic4902 4 жыл бұрын
Hi, sir. I have a problem with h2 database that I do not know how to solve. When I start the application a get a IllegalStateExeption: The file is locked: nio:C:/.../lena.mv.db [1.4.197/7]. What shall I do to solve this ?
@prayagbhasin9192
@prayagbhasin9192 Жыл бұрын
On Which ide you are working?
@islamayman278
@islamayman278 2 жыл бұрын
Thanks
@abhipatel7883
@abhipatel7883 5 жыл бұрын
I am getting different sequence in my database table inspite of the one which I have written in my view file for example in vo I write stateId,stateName,stateDesc and in database I am getting stateId,stateDesc,stateName please any one can say what is the problem
@tharlinhtet97
@tharlinhtet97 4 жыл бұрын
Sir, it showed the error message that the remote database is not created.what should i do??
@dhirendrasaxena9477
@dhirendrasaxena9477 3 жыл бұрын
Hi Naveen, In JPA want to execute below SQL open query to get the data from the linked server. SELECT * FROM OPENQUERY(PGSERVER, 'select * from shipx where shpxsndn=''6230905235''') I tried by using below but getting an exception : @Query(value = "SELECT * FROM OPENQUERY(PGSERVER, 'select * from shipx where shpxsndn=''6230905235''')", nativeQuery = true) Please advise in resolving the same.
@vivekguptacs
@vivekguptacs 4 жыл бұрын
Its not working .i did the same . I used 2.0.4.RELEASE SPRING boot version.and h2 database scope is runtime as you shown in your pom. Could you please put this coade on git.. i was not able to see h2 console
@devbros2241
@devbros2241 5 жыл бұрын
I have a really Important request, and that is to show us how to write sql query using spring mvc. It is one of the things I need for a project. Most applications need to run sql in the code, not in the database.
@deveshrohila1558
@deveshrohila1558 3 жыл бұрын
i hv removed my saved setting of H2 db, and now its showing error due to " test connection", so how can i change saved setting to H2 db, plz tell me
@antoniofalabella4764
@antoniofalabella4764 Жыл бұрын
The only bad thing about this video is that I can hit like just one time. I would upvote this 10 times
@yashgarala6051
@yashgarala6051 4 жыл бұрын
Can you give some information to how to connect database from MySQL.
@shanmuksandeep9134
@shanmuksandeep9134 6 жыл бұрын
Navin ji, you have not annotated repo interface with any annotation(@Repository) . How come Autowired worked in this scenario??
@shalinisingh2940
@shalinisingh2940 4 жыл бұрын
the repo interface extended CrudRepository, you can go there to check the annotation there.
@timgarcia4105
@timgarcia4105 5 жыл бұрын
I encountered a problem where the H2 database was not being created, It turns out that the package name of model should be under demo. Because I created mine com.example.model instead of com.example.demo.model.
@fahmifarhat7076
@fahmifarhat7076 3 жыл бұрын
Yes, That's it! You have solved my problem. Thank you.
@SaurabhkrGupta-tc7qs
@SaurabhkrGupta-tc7qs 4 жыл бұрын
How do you define the datsource url ?
@sablala3116
@sablala3116 4 жыл бұрын
good job
@aswathyadhu6985
@aswathyadhu6985 Ай бұрын
But i am facing a problem that my table is refreshing in each run. how can i overcome that
@deenanathsingh6959
@deenanathsingh6959 6 жыл бұрын
Sir go more brief with spring Boot
@syedmohammadshabbir8195
@syedmohammadshabbir8195 3 жыл бұрын
do we have to add spring web?
@naeemghumman
@naeemghumman 3 жыл бұрын
Very nice
@2yogeshjadhav
@2yogeshjadhav 5 жыл бұрын
Can we use spring boot with Mysql Views?
@mohdfurqan4739
@mohdfurqan4739 4 жыл бұрын
Awesome
@ajinkyakadam967
@ajinkyakadam967 5 жыл бұрын
table is not getting created i have hit localhost:8080/h2-console...... then i put this jdbc:h2:mem:ajinkya which is there in my property file.... after this i have executed code by putting annotations @entity and @id but table is not getting created..... anyone will help on this... ??? thanks in advance
@dipakmaske1
@dipakmaske1 3 жыл бұрын
Thank you
@ruban3461
@ruban3461 Жыл бұрын
data.sql file should be in target folder???
@gangadharkodi5568
@gangadharkodi5568 3 жыл бұрын
Sir When am trying to test connection of H2 Data Base i got following Error can you help mr how to resolve it.. "not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-200] 90149/90149 (Help)"
@Kavya-jh1yh
@Kavya-jh1yh 4 жыл бұрын
I am getting BeanCreationException. Error, please help me to resolve it
@aditeemattoo6254
@aditeemattoo6254 3 ай бұрын
Thnakyou Sir for the most amazing videos on JAVA one update in configuration in application.properties spring.jpa.defer-datasource-initialization=true spring.h2.console.enabled=true spring.datasource.url=jdbc:h2:mem:adm above will work
Spring Boot | JPA | MVC | H2 Example Part 2
9:52
Telusko
Рет қаралды 85 М.
UFC 302 : Махачев VS Порье
02:54
Setanta Sports UFC
Рет қаралды 1,4 МЛН
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 40 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 29 МЛН
What is JPA? | JPA Implementation
26:21
Telusko
Рет қаралды 375 М.
JPA And Hibernate Tutorial For Beginners with Spring Boot and Spring Data JPA
57:15
in28minutes - Get Cloud Certified
Рет қаралды 218 М.
Spring Boot Tutorial | Spring Data JPA | 2021
1:02:02
Amigoscode
Рет қаралды 681 М.
NEVER lose dotfiles again with GNU Stow
14:33
typecraft
Рет қаралды 13 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 34 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 6 МЛН