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
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