Spring Boot JPA - Connect to MySQL Database in a Docker Container

preview_player
Показать описание
Spring Boot is a very powerful framework that allows us to easily connect to a MySQL database inside a docker and then retrace this data to expose it to a REST API.

My channel publishes programming and software engineering videos, especially Java and Python. If that is what you are looking for, do not hesitate to join me on this journey!

Subscribe to my YouTube channel:

Chapters:
0:00 Intro
0:35 SQL
1:06 Docker
2:06 Spring Boot DB connection
3:13 Spring Entity
4:01 Spring Repository
5:56 Spring REST Controller
6:45 Running this Project
9:26 Outro
Рекомендации по теме
Комментарии
Автор

Short and Sweet. Good content. Thank you!!

maheshvshet
Автор

Since Spring 4.3 you don't need @Autowired for constructor injection, just use the constructor

vsch
Автор

Having trouble to connec to myslq - getting sql exception when trying to run application Access denied for user 'root'@'host' (using password: YES)

puzzeled
Автор

had no idea you could use the yml file inside intellij, i was running the container seperately in docker and it gave me an error, no clue why.

sugoi
Автор

Thank you brother, just saved my day God bless you forever!

KnightHavel
Автор

Hi, no data is being added to the database (the databases and tables are being created, but no insert statements are being executed).

Summer