Stepping on the pit record shows that there are classes and dependencies, but the import does not come in. The application file is not a leaf

As shown

 Solution 1: Free the cache

 

Solution two:

delete the idea file

 restart the project

Set sdk and project language level in project structure

 Right-click the pom.xml file, Add as Maven Project

 

Guess you like

Origin blog.csdn.net/weixin_45660485/article/details/120296405