Spring Boot Java H2 Database Setup in IntelliJ

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

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

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

    What are some of your favorite plugins & themes for IntelliJ?

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

      Codota, Lombok, Maven Dependency Helper, "Yet another emoji support" to add emojis for frontend, I'm also enjoying the One Dark Theme plugin

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

      Lombok

    • @_us.m.an_
      @_us.m.an_ Год назад

      Sonarlint

  • @ijanijigar
    @ijanijigar 4 года назад +8

    Hey Dan,
    This was useful. Thanks.
    Database tools and SQL is not available in community edition. I tried another plugin Database Navigator. Unfortunately that also doen't support h2.
    Nonetheless, this video was helpful. Sub'd. Waiting for more content.

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

      Ahh bummer, sorry about that. I just assumed they were and that is a bad job on my part. Thanks for letting me know.

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

      hi jigar, I am not sure what problem you encounter but in commutiy edition it can be done via start.spring.io/ . In this website generate your jar file and import to your intelliJ. I hope it solves your problem. Best regards

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

      I got the same problem. It only works with IntelliJ Ultimate Edition. Does anyone know to make it work withou it?

  • @SenselessSurvivor
    @SenselessSurvivor 4 года назад +8

    I'm starting with Spring Boot and Databases and looked exactly for this help. Very useful. Thank you!

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

      Great to hear!

  • @SakanaFamilyVideos
    @SakanaFamilyVideos 3 года назад +7

    Thank you for this amazing video Dan!
    For some unclear reason when I try to use a db file and not from memory, the table I created in the data/schema is not visible, also, it didn't require the "sa" username, maybe there's some connection to the issue?

  • @ainkivimagi2559
    @ainkivimagi2559 3 года назад +2

    Hello. If I log in from console with default datasource url (jdbc:h2:mem:testdb) using sa and "" as username and password, it works smoothly, but if I try to change the datasource url, the application itself will run nicely but then as I'm trying to connect to the h2 database, it throws a "invalid password or username" error. I tried to fix it by setting the username and password manually with the spring.datasource.username and spring.datasource.password, but after that the application won't even run, stating the same issue with invalid password or username.

    • @Cfuzion
      @Cfuzion 11 месяцев назад

      spring.datasource.username=sa
      spring.datasource.password=

    • @lourdessanthosh7465
      @lourdessanthosh7465 6 месяцев назад

      did you fix it

    • @lourdessanthosh7465
      @lourdessanthosh7465 6 месяцев назад +1

      just fixed it. might be too late for you but this could help others. if you persist the data in your disk there is no authentication i.e both username and password strings are empty

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

      @@lourdessanthosh7465 Thanks for the tip. That was it!

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

    Thanks! After creating the file jdbc connection and testing it, it says my username or password are incorrect, any ideas? After removing both username and password I am able to connect, but there aren't any tables. Only difference is instead of inserting as shown in the video, I'm inserting using CSVread

  • @securethebag1613
    @securethebag1613 8 месяцев назад +1

    is it possible to use hikari with an in memory database like h2 just to test the pooling?

  • @ahmedjaad4940
    @ahmedjaad4940 2 месяца назад

    Anybody who follows this tutorial and still cannot connect, here is you answer stackoverflow.com/questions/72255338/intellij-embedded-h2-database-tables-do-not-appear

  • @KristianCzepluch
    @KristianCzepluch 29 дней назад

    Thanks for this helpful video, but the swallowing kills me inside

  • @luchonoprograma203
    @luchonoprograma203 4 месяца назад

    Thanks Buddy, its very useful

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

    Despite using the community version I am able to run the code and to open the database in the browser. However, the database is not pulling my table. If you have any idea what the reason might be, let me know.

    • @burakkusku5387
      @burakkusku5387 3 года назад +2

      Hello, I got the same problem and looking for a answer I found your comment. Maybe it is too late for an answer and maybe it is not the same reason but I would like to share my solution. Actually it is not the solution it a wording problem for me. In application.properties folder, I needed to write "spring.jpa.hibernate.ddl-auto=none". If you have not, you can check. In my case I did a word mistake and I spent hours to solve this problem :(

    • @blandcoffeeamv4107
      @blandcoffeeamv4107 3 года назад +2

      @@burakkusku5387 Thanks a lot. :) I don't remember my solution, i had to re-set up my laptop and lost all my files in the process but I got the problem fixed.
      I did it differently from what I remember but it's never a bad idea to have multiple solutions to a problem.

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

      @@burakkusku5387 Thanks! That helped!

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

      Can you please help me as well with connecting the H2 database with the community edition of intellij

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

    I have to do a demo at work today. That'll be immensely helpful. Thank you!

  • @lucaspericlesdefrancaperei3477
    @lucaspericlesdefrancaperei3477 2 года назад +1

    gracias por todo

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

    Thanks for the video! when I try use the db file, it doesnt show me the table in the h2 console. It worked when i used it from memory. Any ideas?

  • @TM-jb8bw
    @TM-jb8bw 2 года назад

    Can you use AUTO_SERVER=true for mem variant?

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

    Thanks a lot! I was wondering, why I can't see my tables in IntelliJ, now I have an answer.

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

    Thanks, Dan! Fixed my problem when you mentioned "relative paths".

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

      Glad it helped!

  • @josemiranda7386
    @josemiranda7386 8 месяцев назад

    Thank you, i was really struggling with the h2 mem

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

    Thx for the video.
    Currently I am looking for the exact same setup including the IntelliJ View 'Persistence' in order to be able to directly work with jpa-ql when developing.
    I do not get it working and I feel somewhat blind on any cause. That is a major use case for me as a devloper: a very efficient way of wrinting queries with JPA.

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

    Very nice. Can you explain zonkey test ? Thank you..

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

    You are damn good buddy, this helped me a lot.

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

    Ajudou bastante, estava com dificuldades em conectar com o banco h2, obrigado.

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

    Thanks god, You are not talking in hinglish

  •  3 года назад

    Thanks a lot! I didn't know how to get access from IntelliJ!

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

    Super! Exactly what my challenge has been! Thanks!

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

    Thanks for the tutorial

  • @marshall8425
    @marshall8425 6 месяцев назад

    GOAT OF THE DAY

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

    Thanks Dan ! Regards from Brazil

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

    Thank you Dan. Video was really useful

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

    Great video! Thank you!

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

    Really well explained and clear! Thank you Dan!!!

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

    thanks alot

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

    Thank you so much

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

    Brilliant Dan, thank you so much

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

    you are my hero!

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

    I am so grateful for the video, thanks a lot!

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

      You are welcome! Thank you for the kind words