Error: (2, 35) java: package org.springframework.context does not exist
Problem description (prescribe the right medicine, if you are in this situation, please continue to read):
The IDE does not report red when writing code, and Ctrl+mouse click on the class or method can jump, but the operation is an error and the package cannot be found.
Solution 1: Click the box pointed by the arrow.
If it doesn’t work, click the arrow below, and the cache will be invalidated and rebuilt at the next startup.
Method 2: Comment out the custom central warehouse.
Create a new central warehouse and
finally do it in Maven. Refresh