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