发现代码报错,提示没有找到某个类,查看 Project Structure --》libraries 发现对应的依赖为这种样子 查看仓库发现包是存在的,在 pom 文件中,右键 Run Maven --》 Reimport 解决