The SpringMVC project keeps reporting errors, but it returns to normal after clicking it. The solution is to generate the iml file through the mvn idea:module command

Error description:

You can see a lot of errors, but as long as you click to enter, the errors will disappear immediately, and then you can go to other files and wait for a while.
Insert picture description here

wrong reason

Idea did not generate the corresponding .imlfile for us , which caused this exception. (Sometimes IDEA creates a new web module, there is no .imlfile, I don’t know if you have encountered it, anyway, I did.)

Solution:

Open idea of the console below Terminalthe terminal, and then jump into your cd module, enter the command mvn idea:modulecan regenerate .imlfiles
Insert picture description here

Solution result:

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_40542534/article/details/109103472