Fix Cannot Load Driver Class: com.mysql.jdbc.driver in Spring Boot
1. Introduction The “can not find driver exception” with “com.mysql.jdbc.driver" means that the Spring Boot application can not load the old MySQL driver class-com.mysql.jdbc.Driver-from its classpath. It’s usually caused by upgrading a Spring Boot application to a high version with a mismatching spring.datasource.driver-class-name. In this example, I will explain the root cause and how to …
