[Solved] Failed to bind properties under ” to com.zaxxer.hikari.Hikari DataSource Spring Boot

Description:

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

    Property: driverclassname
    Value: oracle.jdbc.OracleDriver
    Origin: "driverClassName" from property source "source" 
    Reason: Unable to set value for property driver- class - name

Action:

Update your application 's configuration

This error is because the h2 database is used by default in the springboot test environment, and you have not configured h2

I need to specify the mysql database I use

Add in application.properties

spring.datasource.driver- class -name=com.mysql.jdbc.Driver

Similar Posts: