#springboot

Sdílet
Vložit
  • čas přidán 27. 01. 2022
  • Hi All,
    In this video we are going to create springboot application and connect with mysql database so we will learn how to conncet springboot application to database.
    Dependencies Used:
    Spring Web
    MySql Driver
    Spring Data JPA
    Application. propertiea file configuration as below:
    spring.datasource.url=jdbc:mysql://localhost:3306/empdb?useSSL=false
    spring.datasource.username=root
    spring.datasource.password=root_pass_1234
    spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
    spring.jpa.hibernate.ddl-auto=update
    spring.jpa.show-sql=true
    In above configuration you have to update the values as per your username ,Password and database used.
    How to crete springboot application and simple REST API : • #springboot #restapi S...
    How to return java bean and list : • #springboot #restapi #...
    If you find this content usefull please subcribe to channle !
    Thank you for watching.
    How to connect springboot application with mysql database
    springboot mysql connection with example
    springboot project with mysql
    #springboot #mysql #springbootmysqlconnection #sjprogrammingsolutions

Komentáře • 64

  • @naufalazim1699
    @naufalazim1699 Před rokem +4

    Thank you! I can connect with my MYSQL database with Spring boot.

  • @naveenreddy7320
    @naveenreddy7320 Před rokem +1

    thank you so much, it helps me to connect my database.

  • @chawkisallem7682
    @chawkisallem7682 Před rokem +1

    Thank You So Much, You Saved Me

  • @krunalkathikar2154
    @krunalkathikar2154 Před 2 lety +2

    Nice video

  • @reddyvlogs6674
    @reddyvlogs6674 Před rokem +3

    After mentioning empdb in applications property drive & after opening MySQL db i have nothing like this in your SQL db 🤦🏻 what to do ??????

  • @user-ty8rl1nn4x
    @user-ty8rl1nn4x Před 5 měsíci

    Good Content

  • @ravindupawan612
    @ravindupawan612 Před 3 měsíci +2

    well explained

  • @onurelhakan4004
    @onurelhakan4004 Před rokem

    👏

  • @VISITLosAngeles
    @VISITLosAngeles Před 10 měsíci

    Thank you so much

  • @entertainmentume9743
    @entertainmentume9743 Před rokem

    Thanks

  • @vermadeen9181
    @vermadeen9181 Před rokem +1

    thank you .Helpful video

  • @incredibles4226
    @incredibles4226 Před 3 měsíci +2

    7:35 on line 4 "spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect" will help.

  • @shashankchouhan3593
    @shashankchouhan3593 Před 2 lety +2

    Good explaination

  • @cauadev6955
    @cauadev6955 Před 2 lety +2

    nice video bro!

  • @SohamNiungare
    @SohamNiungare Před 3 dny

    ma'am i have this error
    Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql.SQLException, String)

  • @user-qc2rg5rt2q
    @user-qc2rg5rt2q Před 4 měsíci +1

    thank you

  • @aniruddharaje8
    @aniruddharaje8 Před 3 měsíci +1

    Could you make the application using Quarkus framework?

  • @aniruddharaje8
    @aniruddharaje8 Před 2 měsíci

    Spring boot with JWT auth header security video please

  • @rkratz
    @rkratz Před 8 měsíci +1

    save my life

  • @sachin571989
    @sachin571989 Před měsícem

    Mam it shows an error "spelled wrong" While I write these in application. Property

  • @null8637
    @null8637 Před rokem +1

    you missed dev tools its will comes in handy

  • @vishnuvardhand7728
    @vishnuvardhand7728 Před rokem +1

    mam its showing tables in database mam

  • @Recordingization
    @Recordingization Před rokem +3

    how do I configure which tables will be accessed in configuration?

  • @qk884
    @qk884 Před rokem

    My console not showing a query like for you its showing hibernate :creatd table what to do?

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem

      Hi , did you added spring.jpa.show-sql=true in your properties file ? please add above in properties file and run the application you. will see the query in console. Thank you !

  • @yahia1355
    @yahia1355 Před rokem +1

    I have an error (its quite large)would you like to help me ?

  • @Trupti06
    @Trupti06 Před měsícem

    Hi mam I'm getting error while connecting to database
    Failed to initialise jpa Entity manager factory

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před měsícem

      Please check your mysql version in application.properties is matching with your workbench mysql or not , It should be same

  • @saipavirala7762
    @saipavirala7762 Před rokem

    Hi mam I am unable to connect my database it showing client_plugin_auth is required as error what to do now please tell mam

  • @happy_life742
    @happy_life742 Před 23 dny

    Mam why am i not able to put spring.jpa.hibernate.ddl-auto=update.....if i use generate instead of hibernate it doesn't show error...

  • @ankurjaiswal8387
    @ankurjaiswal8387 Před rokem

    please help me out
    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
    Reason: Failed to determine a suitable driver class

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem +1

      Hello Ankur , can you share error msg and screenshot of your application.properties file on sjprogrammingsolutions@gmail.com

    • @avirajechavarepatil8227
      @avirajechavarepatil8227 Před 8 měsíci

      Bhai Tera hua Kya solution

    • @MyWisdomWave-ml8qp
      @MyWisdomWave-ml8qp Před 6 měsíci

      Chat GPT told me to use "spring.datasource.database-platform= org.hibernate.dialect.MySQLDialect" instead of the line in the tutorial and it worked.

  • @gunjinaveen8964
    @gunjinaveen8964 Před 10 měsíci

    how do we know platform-database

  • @anshumangogoi148
    @anshumangogoi148 Před 6 měsíci

    When I create a table using @Table() no table is created in workbench . Can anyone help me with this

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před 6 měsíci

      Please check your application.properties file , Did you provided correct DB details ?

  • @codewithrishi4066
    @codewithrishi4066 Před rokem +1

    Thank you for saving my ass

  • @teluguyoutubers5879
    @teluguyoutubers5879 Před měsícem

    Why i am getting error like occurred during initialisation of boot layer

  • @shubhamjha2031
    @shubhamjha2031 Před rokem

    Can you give training?

  • @hari7027
    @hari7027 Před rokem

    Unsatisfied exception unable to take bean name data source tried all things unable to solve this exception

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem +1

      Hello Hari , Can you share exception screenshot or your project on sjprogrammingsolutions@gmail.com

    • @hari7027
      @hari7027 Před rokem

      @@SJProgrammingSolutions send...plz check

    • @preethimanoj5419
      @preethimanoj5419 Před 6 měsíci

      I also got the same error... getting import Jakarta instead of javax

  • @MJgamer4U
    @MJgamer4U Před rokem

    In which software did u write this? Can u plzz tell!!

  • @umasingh4369
    @umasingh4369 Před rokem

    Why we use SSL=false plz explain

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem +1

      Hi UMA, to disable the SSL we have added useSSL = false otherwise you will get warning

    • @umasingh4369
      @umasingh4369 Před rokem

      @@SJProgrammingSolutions sir could you plz explain any one project so that I can mention in my resume due to year gap I face so many difficulties in interview please help sir..

    • @SJProgrammingSolutions
      @SJProgrammingSolutions  Před rokem

      @@umasingh4369 hi first start creating small small projects with all crud operations and then enhance them.
      Will post some videos.