[solved] Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class

Solution: Make sure the database configuration look likes this,

spring.datasource.url=jdbc:mysql://localhost:3306/db
spring.datasource.username=
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.database-platform = org.hibernate.dialect.MySQL5Dialect
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto = update

Hope it will help

This Post Has One Comment

  1. slot online

    Helo there! I could have ssorn I’ve visited this site
    before but after looking at many of the articles I realized it’s new to me.
    Nonetheless, I’m definitely pleased I came across it and I’ll be bookmarking it and checking bawck regularly!

Leave a Reply