1.File-> Invalidate caches/restart clear cache and restart idea
2. Check whether the dependencies in the POM file are correct
3.maven -> Reimport
4. Open the project structure to check whether there are sources
in the X:\XXX\XXXX\SRC\main\Java folder