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:
- Springboot Error: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd
- [Solved] Spring Boot Error: “jdbcUrl is required with driverClassName.”
- [Solved] Spring introduces the properties variable Error: org.springframework.beans.TypeMismatchException…
- [Solved] Mybatis-config Error: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: failed to parse the connection string near ‘;useUnicode=true&
- How to Solve Cannot determine embedded database driver class for database type NONE
- SpringBoot Frame: Failed to determine a suitable driver class [How to Solve]
- Solve the error of springboot failed to load ApplicationContext
- SSM Project Error: java.sql.SQLException: Access denied for user ‘????…§’@’localhost’ (…
- Failed to obtain JDBC Connection
- [Solved] oracle.net.ns.NetException: Got minus one from a read call