1049. Error:(5, 52) java: The package org.springframework.beans.factory.annotation does not exist (the idea startup project reports an error)

 Background: There is no problem with the project, and there is no problem with clean install.

1. Confirm that your pom files are normal and imported correctly

 Look at the small green tick in the upper right corner to indicate that the dependencies are imported correctly

2. After importing correctly, the package still does not exist, as shown in the figure below

 At this point, enter the following settings, tick the check mark (as shown in the figure), apply -> OK

Run it again, and the project will run normally.

Guess you like

Origin blog.csdn.net/m0_54925305/article/details/128807680