15- Configuring MySQL for project
Before Configuring database we need to execute a query in MySql Workbench to Create database
create database ems;
Now ,
Configuring MySQL Database using jdbc and hibernate
(username and password depends on MySQL Worbench of user)
springboot-backendd --> src/main/resources --> application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/ems?useSSL=false
spring.datasource.username=root
spring.datasource.password=root
# Hibernate properties
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
#create,create-drop
spring.jpa.hibernate.ddl-auto=update
Comments
Post a Comment