Saturday, 29 July 2017

spring boot app jdbc configuration

How to connect spring boot with mysql.

to configure spring boot app with JDBC add jar in pom.xml
and add these property in application.poperties file

spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=dbuser
spring.datasource.password=dbpass
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

No comments:

Post a Comment