Skip to content

3. Configure MySQL Database in Spring Boot App

Ramesh Fadatare edited this page Jul 25, 2022 · 1 revision

Create a Database in MySQL Workbench

create database sms

Configure MySQL Database

spring.datasource.url=jdbc:mysql://localhost:3306/sms
spring.datasource.username=root
spring.datasource.password=Mysql@123

spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL8Dialect

spring.jpa.hibernate.ddl-auto = update

Run Spring Boot Application and Verify the Connection

Clone this wiki locally