#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
Thank you! I can connect with my MYSQL database with Spring boot.
thank you so much, it helps me to connect my database.
Thank You So Much, You Saved Me
After mentioning empdb in applications property drive & after opening MySQL db i have nothing like this in your SQL db 🤦🏻 what to do ??????
Nice video
Thank you so much
Good Content
Thanks
mam its showing tables in database mam
thank you .Helpful video
nice video bro!
@SJProgrammingSolutions
2 жыл бұрын
Thank you !
thank you
Could you make the application using Quarkus framework?
👏
how do I configure which tables will be accessed in configuration?
ma'am i have this error Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql.SQLException, String)
My console not showing a query like for you its showing hibernate :creatd table what to do?
@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 !
how do we know platform-database
Mam it shows an error "spelled wrong" While I write these in application. Property
well explained
@SJProgrammingSolutions
4 ай бұрын
Thank you !
I have an error (its quite large)would you like to help me ?
@SJProgrammingSolutions
Жыл бұрын
Yes, please share details with error on sjprogrammingsolutions@gmail.com
Good explaination
@SJProgrammingSolutions
2 жыл бұрын
Thank you !
@shashankchouhan3593
2 жыл бұрын
@@SJProgrammingSolutions no problem
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
Жыл бұрын
Hello Ankur , can you share error msg and screenshot of your application.properties file on sjprogrammingsolutions@gmail.com
@avirajechavarepatil8227
9 ай бұрын
Bhai Tera hua Kya solution
@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.
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
Жыл бұрын
Can you share error msg or project zip folder on sjprogrammingsolutions@gmail.com
you missed dev tools its will comes in handy
save my life
Hi mam I'm getting error while connecting to database Failed to initialise jpa Entity manager factory
@SJProgrammingSolutions
2 ай бұрын
Please check your mysql version in application.properties is matching with your workbench mysql or not , It should be same
Spring boot with JWT auth header security video please
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
Ай бұрын
What is the error ?
When I create a table using @Table() no table is created in workbench . Can anyone help me with this
@SJProgrammingSolutions
6 ай бұрын
Please check your application.properties file , Did you provided correct DB details ?
Unsatisfied exception unable to take bean name data source tried all things unable to solve this exception
@SJProgrammingSolutions
Жыл бұрын
Hello Hari , Can you share exception screenshot or your project on sjprogrammingsolutions@gmail.com
@hari7027
Жыл бұрын
@@SJProgrammingSolutions send...plz check
@preethimanoj5419
6 ай бұрын
I also got the same error... getting import Jakarta instead of javax
7:35 on line 4 "spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect" will help.
@guilhermesantos2897
3 ай бұрын
YOU ARE THE MAN MY BOY 🔥🔥🔥🔥🔥
Why i am getting error like occurred during initialisation of boot layer
@SJProgrammingSolutions
Ай бұрын
What is the error ?
@teluguyoutubers5879
Ай бұрын
Exception in thread main java lang.Error : Unresolved compilation problem at @SpringbootMySqlExApplication
Thank you for saving my ass
Can you give training?
@shubhamjha2031
Жыл бұрын
Please reply
@SJProgrammingSolutions
Жыл бұрын
Hello Shubham , Please connect with me on sjprogrammingsolutions@gmail.com Thank you !
In which software did u write this? Can u plzz tell!!
@SJProgrammingSolutions
Жыл бұрын
I have used STS IDE , Spring tool suite
Why we use SSL=false plz explain
@SJProgrammingSolutions
Жыл бұрын
Hi UMA, to disable the SSL we have added useSSL = false otherwise you will get warning
@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
Жыл бұрын
@@umasingh4369 hi first start creating small small projects with all crud operations and then enhance them. Will post some videos.