英文:
My java project in IntelliJIdea does not detect dependencies
问题
一切都正常工作,直到我关闭了开发环境。当我重新打开它时,项目不再检测到Lombok、Spring和MongoDB的依赖项。
我已经搜索了很多地方,但我不明白为什么它不再检测到依赖项,而之前它们都能正常工作。
英文:
Everything was working fine until I closed the development environment. When I reopened it, the project no longer detected the lombok, spring and mongodb dependencies.
I have searched for a thousand parts but I do not understand what is wrong so that it does not detect the dependencies when before they worked perfectly.
答案1
得分: 1
你尝试过更新你的项目吗?
右键单击项目 > Maven > 重新加载项目?
英文:
Have you tried updating your project?
Right-click on the project > Maven > Reload project?
答案2
得分: 0
尝试将鼠标悬停在您的导入语句上,然后在重新打开时单击每个导入。如果这不起作用,正如其他人提到的,您还可以尝试Maven - 重新加载项目。
英文:
Try hovering over your import statements and click import for each of those when you re-open it. If that doesn't work then as someone else mentioned you could also try Maven - reload project.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论