IDEA encounters a solution to the Cannot resolve symbol problem

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

1. The JDK reference is wrong

Solution: Find File – Project Structure – Project SDK in the idea, and then choose the JDK you installed
insert image description here

2. No valid Maven setup

Solution: Open File – Setting – search Maven directly, and then set Maven home path (your own Maven installation path)
insert image description here

3. You can try to clear the cache of Idea

As shown in the figure below, restart Idea after clearing the cache
insert image description here

Reference article (invasion and deletion): https://blog.csdn.net/yexiaomodemo/article/details/119238320

Guess you like

Origin blog.csdn.net/mfysss/article/details/130899944