#springboot

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

Пікірлер: 64

  • @naufalazim1699
    @naufalazim16992 жыл бұрын

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

  • @naveenreddy7320
    @naveenreddy7320 Жыл бұрын

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

  • @chawkisallem7682
    @chawkisallem7682 Жыл бұрын

    Thank You So Much, You Saved Me

  • @reddyvlogs6674
    @reddyvlogs66742 жыл бұрын

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

  • @krunalkathikar2154
    @krunalkathikar21542 жыл бұрын

    Nice video

  • @VISITLosAngeles
    @VISITLosAngeles11 ай бұрын

    Thank you so much

  • @user-ty8rl1nn4x
    @user-ty8rl1nn4x5 ай бұрын

    Good Content

  • @entertainmentume9743
    @entertainmentume9743 Жыл бұрын

    Thanks

  • @vishnuvardhand7728
    @vishnuvardhand7728 Жыл бұрын

    mam its showing tables in database mam

  • @vermadeen9181
    @vermadeen9181 Жыл бұрын

    thank you .Helpful video

  • @cauadev6955
    @cauadev69552 жыл бұрын

    nice video bro!

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    2 жыл бұрын

    Thank you !

  • @user-qc2rg5rt2q
    @user-qc2rg5rt2q5 ай бұрын

    thank you

  • @aniruddharaje8
    @aniruddharaje84 ай бұрын

    Could you make the application using Quarkus framework?

  • @onurelhakan4004
    @onurelhakan4004 Жыл бұрын

    👏

  • @Recordingization
    @Recordingization Жыл бұрын

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

  • @SohamNiungare
    @SohamNiungare21 күн бұрын

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

  • @qk884
    @qk884 Жыл бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Жыл бұрын

    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 !

  • @gunjinaveen8964
    @gunjinaveen896411 ай бұрын

    how do we know platform-database

  • @sachin571989
    @sachin5719892 ай бұрын

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

  • @ravindupawan612
    @ravindupawan6124 ай бұрын

    well explained

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    4 ай бұрын

    Thank you !

  • @yahia1355
    @yahia1355 Жыл бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Жыл бұрын

    Yes, please share details with error on sjprogrammingsolutions@gmail.com

  • @shashankchouhan3593
    @shashankchouhan35932 жыл бұрын

    Good explaination

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    2 жыл бұрын

    Thank you !

  • @shashankchouhan3593

    @shashankchouhan3593

    2 жыл бұрын

    @@SJProgrammingSolutions no problem

  • @ankurjaiswal8387
    @ankurjaiswal8387 Жыл бұрын

    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

    Жыл бұрын

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

  • @avirajechavarepatil8227

    @avirajechavarepatil8227

    9 ай бұрын

    Bhai Tera hua Kya solution

  • @MyWisdomWave-ml8qp

    @MyWisdomWave-ml8qp

    7 ай бұрын

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

  • @saipavirala7762
    @saipavirala7762 Жыл бұрын

    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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Жыл бұрын

    Can you share error msg or project zip folder on sjprogrammingsolutions@gmail.com

  • @null8637
    @null8637 Жыл бұрын

    you missed dev tools its will comes in handy

  • @rkratz
    @rkratz8 ай бұрын

    save my life

  • @Trupti06
    @Trupti062 ай бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    2 ай бұрын

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

  • @aniruddharaje8
    @aniruddharaje83 ай бұрын

    Spring boot with JWT auth header security video please

  • @happy_life742
    @happy_life742Ай бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    What is the error ?

  • @anshumangogoi148
    @anshumangogoi1486 ай бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    6 ай бұрын

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

  • @hari7027
    @hari7027 Жыл бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Жыл бұрын

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

  • @hari7027

    @hari7027

    Жыл бұрын

    @@SJProgrammingSolutions send...plz check

  • @preethimanoj5419

    @preethimanoj5419

    6 ай бұрын

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

  • @incredibles4226
    @incredibles42263 ай бұрын

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

  • @guilhermesantos2897

    @guilhermesantos2897

    3 ай бұрын

    YOU ARE THE MAN MY BOY 🔥🔥🔥🔥🔥

  • @teluguyoutubers5879
    @teluguyoutubers5879Ай бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Ай бұрын

    What is the error ?

  • @teluguyoutubers5879

    @teluguyoutubers5879

    Ай бұрын

    Exception in thread main java lang.Error : Unresolved compilation problem at @SpringbootMySqlExApplication

  • @codewithrishi4066
    @codewithrishi4066 Жыл бұрын

    Thank you for saving my ass

  • @shubhamjha2031
    @shubhamjha2031 Жыл бұрын

    Can you give training?

  • @shubhamjha2031

    @shubhamjha2031

    Жыл бұрын

    Please reply

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Жыл бұрын

    Hello Shubham , Please connect with me on sjprogrammingsolutions@gmail.com Thank you !

  • @MJgamer4U
    @MJgamer4U Жыл бұрын

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

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Жыл бұрын

    I have used STS IDE , Spring tool suite

  • @umasingh4369
    @umasingh4369 Жыл бұрын

    Why we use SSL=false plz explain

  • @SJProgrammingSolutions

    @SJProgrammingSolutions

    Жыл бұрын

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

  • @umasingh4369

    @umasingh4369

    Жыл бұрын

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

    Жыл бұрын

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