每次新年生成一个项目运行都会提示
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
必须手工在 pom.xml 里新增引用
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
</dependency>