java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 检查是否有添加Mysql的jar包。 1.新建lib文件夹 2.将jar包添加到lib中 3.右键lib,make as library