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
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