问题:driver-class-name: com.mysql.cj.jdbc.Driver
爆红
解决:在 pom.xml 中添加 mysql 依赖
xml
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>