一、错误截图 二、错误原因 项目默认配置的依赖项的作用域(Scope)都被设置为"provided" 三、解决方法 选择“Run” → “Edit Configurations”命令在弹出的对话框中勾选“Include dependencies with Provided scope”复选框