问题解决:办法1:使用Project Structure 方法二:使用Maven 在pom.xml文件中添加如下 转载于:https://www.cnblogs.com/a103007/p/9780218.html