0

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.

  • Refer to this: https://stackoverflow.com/questions/15046764/intellij-idea-not-recognizing-classes-specified-in-maven-dependencies – a.sh Jul 02 '23 at 22:54

2 Answers2

1

Have you tried updating your project?

Right-click on the project > Maven > Reload project?

zawarudo
  • 1,907
  • 2
  • 10
  • 20
0

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.