Problem Description:
An error was encountered while springboot was starting:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-10-09 16:10:19.148 ERROR 3668 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
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: java.lang.RuntimeException: 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
Cause analysis:
When testing springboot, the default is H2 database, and I use mysql, so I need to specify it in application.properties
Solution:
Specify the following in application.properties
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
Read More:
- In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code
- Push failed Unable to access ‘https://github.com/‘: Failed to connect to github.com port 443: Timed
- fatal: unable to access ‘https://github.com/xxx‘: Failed to connect to github.com
- To the brothers who encountered simple bind failed 192.168.1.×××: 636
- [Windows] Socket Server Failed to bind, error 10048
- nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
- Centos Failed to Modify the port of SSH: error: Bind to port 27615 on 0.0.0.0 failed: Permission denied.
- Elasticsearch startup process error: org.elasticsearch.transport .BindTransportException: Failed to bind to [9300-9400
- KAFKA – ERROR Failed to write meta.properties due to (kafka.server.BrokerMetadataCheckpoint)
- ERROR c.z.hikari.pool.HikariPool:594 restartedMain HikariPool-1 -Exception
- Solve the MAC terminal download error curl: (7) failed to connect to raw.githubusercontent.com port 443: Connection refused
- How to solve problems like curl: (7) failed to connect to raw.githubusercontent.com Port 443: problem with connection used
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- Android: How to Solve Execution failed for task ‘:app:compileDebugJavaWithJavac‘. > javax/xml/bind/JAXBException
- Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
- Springboot modifies the reference of the application.yml or. Properties file to report an error after startup
- ubuntu-how to solve the error-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
- Failed to resolve: com.github