Failed to load driver class com.mysql.cj.jdbc.Driver code example
Example: Cannot load driver class: com.mysql.cj.jdbc.Driver
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.18</version>
</dependency>