Maven mysql jdbc3/18/2024 ![]() This exception will be resolved if all three is configured correctly The mismatch will fails to load the configured driver class in the java application. The driver load exception Cannot load driver class: and Cannot load driver class: .jdbc.Driver occurs if there are mismatch in mysql database driver class name, mysql database driver jar version and mysql database version. Cannot load driver class: .jdbc.Driver Caused by: : Cannot load driver class: Īt .state(Assert.java:97) ~Īt .(DataSourceProperties.java:223) ~Īt .(DataSourceProperties.java:175) ~Īt .(DataSourceConfiguration.java:43) ~Īt .jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:85) ~ There is an another version of the exception. The following stack trace will be shown if the database driver exception Cannot load driver class: is thrown. The database driver class loads the mysql database driver from the driver’s jar. The driver establishes a connection to the mysql database and runs the database sql queries. In order to execute sql queries in a Java application, the driver class must be loaded. If the driver class is unable to load, the exception Cannot load driver class: will be thrown. The java application attempts to load a driver class from the mysql database driver jar. The database exception Cannot load driver class: occurs if there is a disparity between mysql driver class, mysql driver jar version and mysql database version.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |