java: package org.springframework.beans.factory.annotation does not exist.

Solution:

1. Select the Settings in the file

2. Find Maven, check always update snapshots, then Apply>Ok

Finally, cut all the dependencies of the pom.xml file, copy them in again, and refresh the import. (Or restart Idea, I just have no problem after restarting) 

 

Guess you like

Origin blog.csdn.net/kking_Ran/article/details/127355433