1.设置自动下载依赖 settings——search——maven——importing——automatically download——勾选自动下载 2.重新加载项目 pom文件右键——maven——reload project