nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.cj.jdbc.Driver code example
Example: Caused by: java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.18</version>
</dependency>