The following lists a variety of situations that may cause Cannot resolve symbol problems, and you can choose to set them according to your own problems
Article Directory
1. The JDK reference is wrong
Solution: Find File – Project Structure – Project SDK in the idea, and then choose the JDK you installed
2. No valid Maven setup
Solution: Open File – Setting – search Maven directly, and then set Maven home path (your own Maven installation path)
3. You can try to clear the cache of Idea
As shown in the figure below, restart Idea after clearing the cache
Reference article (invasion and deletion): https://blog.csdn.net/yexiaomodemo/article/details/119238320