Spring Boot | JPA | MVC | H2 Example

Поделиться
HTML-код
  • Опубликовано: 16 июн 2018
  • 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 : ruclips.net/channel/UCxmk...
    Telusko Hindi :
    ruclips.net/channel/UCitz...
    Donation:
    PayPal Id : navinreddy20
    Patreon : navinreddy20
    www.telusko.com/contactus
  • НаукаНаука

Комментарии • 229

  • @samarthurs8000
    @samarthurs8000 5 лет назад +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!

  • @awanishmishra9584
    @awanishmishra9584 6 лет назад +7

    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

  • @praveensharma8888
    @praveensharma8888 5 лет назад +18

    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 :)

  • @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 года назад +31

    After Spring Boot 2.0 the data.sql should be import.sql. Hope someone find this useful. Btw this is an amazing tutorial.

  • @priyanga.c1065
    @priyanga.c1065 3 года назад +1

    You are a really awesome brother. We can easily learn a new framework just because of your teaching style and knowledge. Thanks a lot.

  • @kevin-ru6oe
    @kevin-ru6oe 4 года назад

    I had some problems starting this project, but one I solved those, I understand all perfectly. Good video.

  • @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.

  • @vasuudayar3691
    @vasuudayar3691 5 лет назад

    Thank you Sir , you make every topics simple and clean

  • @larhchimismail3399
    @larhchimismail3399 3 года назад

    You're the best so far people just must watch and like thanks for your time sir!!

  • @olahomori5561
    @olahomori5561 6 лет назад

    We'll be waiting for more videos 😊 I've been learning a lot..

  • @youssefmoussa2523
    @youssefmoussa2523 4 года назад

    You are awesome man. You are the greatest alien i ever seen thanks a lot;

  • @rajmodi1313
    @rajmodi1313 5 лет назад +2

    Keep posting! We want more :)

  • @evg.sidenko
    @evg.sidenko 5 лет назад

    Thanks a lot! Great video and very detailed description.

  • @chinmaydas4053
    @chinmaydas4053 6 лет назад +1

    Good topics discussed sir.. Many many thanks 🙏..

  • @vitormatos7483
    @vitormatos7483 4 года назад +5

    New versions of Spring + H2 doesn't create remote database at startup, for security reasons.

  • @kirtim1930
    @kirtim1930 3 года назад

    Nicely explained. Its really helpful.Thank you!

  • @DhakaToDC
    @DhakaToDC 6 лет назад

    Learn New things from every video, Thanks

  • @TejaDuggirala
    @TejaDuggirala 5 лет назад +5

    Teluskunnanu. Thank you sir :)

  • @sunilbiswal5637
    @sunilbiswal5637 5 лет назад

    really sir , u r doing good job,ur explantion is super

  • @ravijatwa240
    @ravijatwa240 4 года назад

    Navin Reddy great man!!

  • @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..

  • @curiously-cinnamon
    @curiously-cinnamon Год назад +4

    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 2 месяца назад

      Still gives error

    • @shankarraj3433
      @shankarraj3433 Месяц назад

      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 Месяц назад

      Thanks a lot, you have saved me a huge amount of time in resolving this issue.

    • @curiously-cinnamon
      @curiously-cinnamon Месяц назад

      @@shankarraj3433 Happy to help! Made this comment more than a year ago, but I'm glad it's proving useful to someone!

    • @shankarraj3433
      @shankarraj3433 Месяц назад +1

      @@curiously-cinnamon Ya, it helped many. Thanks.

  • @krish5960
    @krish5960 3 года назад

    Chala easy way lo Cheptunnaru Navin :)

  • @sachingaikwad2939
    @sachingaikwad2939 5 лет назад

    Thank you sir.. Your videos are very helpfull.

  • @neerajkashyap01
    @neerajkashyap01 5 лет назад

    Very nicely explained.

  • @nitinverma25
    @nitinverma25 5 лет назад

    I must say, you are the best alien ;)

  • @ajit287
    @ajit287 6 лет назад

    Excellent sir.....keep going

  • @RezaJafari1984
    @RezaJafari1984 3 года назад

    This is Perfection

  • @akshaytalekar2307
    @akshaytalekar2307 6 лет назад

    Thank you, sir
    You are great

  • @SrividyaNatarajan
    @SrividyaNatarajan 5 лет назад

    Excellent...thq!

  • @elionaiesf
    @elionaiesf 5 лет назад

    Very good Thanks!

  • @vamsikrishna-rc5nt
    @vamsikrishna-rc5nt 5 лет назад +1

    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.

  • @nidhinchacko6087
    @nidhinchacko6087 5 лет назад

    Excellent!

  • @6977202865
    @6977202865 4 года назад

    BRILLIANT!!!!!

  • @arnabdas6089
    @arnabdas6089 2 года назад

    Man you are Great amd so is SpringBoot.:')

  • @olahomori5561
    @olahomori5561 6 лет назад

    Thank u for this.

  • @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.

  • @shankarraj3433
    @shankarraj3433 Месяц назад

    Thanks Mr. Navin.

  • @adilsaju
    @adilsaju 4 года назад

    Awesome!

  • @antrohydon0426
    @antrohydon0426 6 лет назад

    super bro...

  • @Akshoysamir
    @Akshoysamir 6 лет назад +3

    @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

  • @shubhammhatre4743
    @shubhammhatre4743 5 лет назад +3

    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

  • @sumeshsuseelan7695
    @sumeshsuseelan7695 2 года назад

    Thank you so much!!!

  • @pickmusic9533
    @pickmusic9533 3 года назад +1

    Can we use multiple database engine (MySQL, PostgreSQL, Mongodb, DynamoDb) for single webpage at a time?

  • @shilpachidura1287
    @shilpachidura1287 5 лет назад

    Very nice video. Why AlienRepo class is not annotated with component but how autowire is still working ?

  • @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?

  • @WisdomIsAwesome
    @WisdomIsAwesome 3 года назад +1

    For the record, the 1000th like was mine.

  • @meenakshisundaram3231
    @meenakshisundaram3231 6 лет назад

    Very nice sir

  • @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.

  • @prannavkrishna1004
    @prannavkrishna1004 5 лет назад

    Thank you vmuch

  • @iamchiranjeevin
    @iamchiranjeevin 6 лет назад

    I just now knew that a new runtime database named H2 Exists in a world lol ..but thanks anyway bro :D

  • @nafazbenzema9714
    @nafazbenzema9714 5 лет назад +1

    AlienRepo is a interface.how did you create instance for interface through Autowired Annotaion

  • @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 ?

  • @ashishb1007
    @ashishb1007 5 месяцев назад

    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?

  • @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.

  • @sablala3116
    @sablala3116 4 года назад

    good job

  • @jatinsareen7771
    @jatinsareen7771 6 лет назад

    which is the best screen recorder for laptop

  • @mohdfurqan4739
    @mohdfurqan4739 4 года назад

    Awesome

  • @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

  • @naeemghumman
    @naeemghumman 3 года назад

    Very nice

  • @deenanathsingh6959
    @deenanathsingh6959 6 лет назад +2

    Sir go more brief with spring Boot

  • @antoniofalabella4764
    @antoniofalabella4764 Год назад

    The only bad thing about this video is that I can hit like just one time. I would upvote this 10 times

  • @sunnychouhan1228
    @sunnychouhan1228 6 лет назад

    How does repository save the data ,as it is the interface and we have not implemented it any where...please explain

  • @dipakmaske1
    @dipakmaske1 3 года назад

    Thank you

  • @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.

  • @aneckumar5701
    @aneckumar5701 2 года назад

    I have a Question
    that AlienRepo is not annotated with @Component annotation then how come Autowiring of the same Object happening?

  • @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

  • @aditeemattoo6254
    @aditeemattoo6254 4 месяца назад +1

    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

  • @MetaJINX00
    @MetaJINX00 2 года назад

    i have doubt that how jpa is capturing the values which you added in the name and id fields?

  • @shanmuksandeep9134
    @shanmuksandeep9134 6 лет назад +1

    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.

  • @hariomsinha6894
    @hariomsinha6894 4 года назад

    can you tell me how to retrieve data from the h2 db?

  • @kaushiklad6551
    @kaushiklad6551 6 лет назад

    sir make video on spring security with spring boot

  • @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?

  • @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

  • @timgarcia4105
    @timgarcia4105 5 лет назад +2

    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.

  • @nirmalaramesh3258
    @nirmalaramesh3258 5 лет назад

    Plz can u make a vedio on how to save file in database using spring boot hibernate

  • @ujjawalsharma5549
    @ujjawalsharma5549 4 года назад

    I want to use MySQL instead of H2 database in this project, how can I do that?

  • @islamayman278
    @islamayman278 2 года назад

    Thanks

  • @damanvirdi168
    @damanvirdi168 6 лет назад +1

    ur tutorials r really good.....plz help me as i m not able to create table via ur instructions......database is created but table is not created

    • @11maid11
      @11maid11 6 лет назад

      Your your JDBC url in h2 base has to be same as url in aplication.properties file

  • @adayinmylife1809
    @adayinmylife1809 6 лет назад

    please provide more videos navin

  • @yashgarala6051
    @yashgarala6051 4 года назад +1

    Can you give some information to how to connect database from MySQL.

  • @syedmohammadshabbir8195
    @syedmohammadshabbir8195 3 года назад

    do we have to add spring web?

  • @amandeep01010
    @amandeep01010 3 года назад +1

    If you re getting error :
    Database "/Users/amandeepverma/test" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-200]
    Then you can fix it by setting the value in "JDBC URL: " column to -> jdbc:h2:mem:navin

  • @tharlinhtet97
    @tharlinhtet97 4 года назад

    Sir, it showed the error message that the remote database is not created.what should i do??

  • @budgettravelwitharzoo2446
    @budgettravelwitharzoo2446 4 года назад

    what is the use of @responsebody controller?

  • @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?

  • @SaurabhkrGupta-tc7qs
    @SaurabhkrGupta-tc7qs 4 года назад

    How do you define the datsource url ?

  • @Qkay2
    @Qkay2 6 лет назад +1

    you did not use service class could you explain why it is need or not needed?

    • @idanqwe1
      @idanqwe1 4 года назад

      The same question I wanted to ask. Does anyone know?

  • @2yogeshjadhav
    @2yogeshjadhav 5 лет назад

    Can we use spring boot with Mysql Views?

  • @prayagbhasin9192
    @prayagbhasin9192 Год назад

    On Which ide you are working?

  • @deepakm3839
    @deepakm3839 2 года назад

    After creating data.sql file I am encountered with this error,
    Exception encountered during context initialization - cancelling refresh attempt:

  • @user-cq7db9ij1o
    @user-cq7db9ij1o 4 года назад

    i can see the database but can't see the table. any idea?

  • @manoharkumarsingh8194
    @manoharkumarsingh8194 4 года назад

    Sir while I am hitting on addAlien in browser i am getting home page and inserting the value there and the data is getting saved but along with that is also saving null after that for name and 0 for id

  • @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.

  • @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.

  • @SonalGupta25
    @SonalGupta25 5 лет назад +1

    Hi Navin,
    you have not annotated repo interface with any annotation(@Repository) . How come @Autowired worked in this scenario??
    Please let me know , I am not able to understand this?

    • @gunjanrathore8101
      @gunjanrathore8101 5 лет назад +1

      Sonal Gupta
      Hi, I am having same doubt, if you found the answer, can you please tell me.

    • @mohamedfarvez592
      @mohamedfarvez592 5 лет назад

      @@gunjanrathore8101 adding to the above part, we will get bean exception when we try to create instance for interface

    • @shubhk108
      @shubhk108 4 года назад +1

      Crudrepository will extend those all methods

  • @mikegunner5539
    @mikegunner5539 4 года назад

    what if i want to use mysql db??? please reply sir

  • @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