Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:


I am trying to connect to MySQL via SpringBoot + JPA and running into the following error


***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:

    Property: driver-class-name
    Value: com.mysql.cj.jdbc.Driver
    Origin: "driverClassName" from property source "source"
    Reason: Failed to load driver class com.mysql.cj.jdbc.Driver
    in either of HikariConfig class loader or Thread context classloader

Action:

Update your application's configuration


Process finished with exit code 1

1 Answer

3 years ago by

Looks like you are missing the configurations in application.properties
Even if you want to run with the defaults, specify the following

spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/tmv
spring.datasource.username=root
spring.datasource.password=
3 years ago by Karthik Divi