我的IntelliJIdea中的Java项目无法检测到依赖关系。

huangapple go评论64阅读模式
英文:

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.

enter image description here

enter image description here

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.

huangapple
  • 本文由 发表于 2023年7月3日 04:25:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76600649.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定