在自己建的项目里import导入 选archive file; 添加mysql-connector-java-5.1.18-bin.jar;就好了 转载于:https://www.cnblogs.com/lengxia/p/4387792.html