spring-boot Connecting a spring-boot application to MySQL

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

We know that spring-boot by default runs using H2 database. In this article, we will see how to tweak the default configuration to work with MySQL database.

Remarks

As a pre-requisite, make sure that MySQL is already running on port 3306 and has your database created.



Got any spring-boot Question?