程序包org.springframework.beans.factory.annotation不存在 1.Librarys里缺少Spring的jar包 导包,自己下载好需要的jar包,导入到项目里 2.spring的配置文件 3.添加spring依赖库 ok,代码里可以import 了