com.mysql.cj.jdbc.Driver/com.mysql.jdbc.Driver
If it is not a version issue, other answers have said to add a jar package to the jdk. In fact, mavern just quotes the mysql package. The csdn answers are all repeated
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>