Premise: Make sure the dependencies in Maven are correct, Don’t make mistakes such as missing letters.
If you are worried, you can go to the official website to search, and copy and paste it again.
Official website link: https://mvnrepository.com/
Importing a new project,or other reasons,maven refresh is also useless, it reports error as show below：
1. First, Clear the cache, Click and restart IDEA.
2. Close IDEA, Open the project folder
.idea in the project, delete
3. Re-open IDEA， find Maven on the right
Wait for the console to appear
install under maven again, Double-click it and the download log shown below will appear.
Wait it over, and
BUILD SUCCESS will appear:
Click the Reload button in the Maven component again, wait for the bottom progress bar to end
4. Solve the Dependencis report in Maven
First, Open the file
Then delete the content in the tag
dependencies [recommended to use
Ctrl + x]
Click the Reload button in the Maven component again, wait for the bottom progress bar to finish. [
dependencies disappears at this time]
pom.xml, use the shortcut key
Ctrl + z to return
（If you are using
Ctrl + x ， you can use
Ctrl + v to paste）
dependencies content appear again，return to the previous state.
The last step: click the Reload button in the Maven component again, wait for the bottom progress bar to finish. [At this time,
dependencies appears and no longer reports an error]
Finally, it is solved.