程序包org.springframework.context不存在 问题的解决
程序包org.springframework.context.support不存在 问题的解决
个人碰到这个问题后发现是maven里面的Local reposity中的文件夹名有关。
- 先在settings文件中把localRepository注释掉,要修改本地仓库在idea设置中修改
maven的settings.xml文件
<!--<localRepository>E:\maven\repository</localRepository>-->
此处的文件名为***E:\maven\repository***时,运行项目后产生异常
- 本地仓库路径名修改为***E:\maven\repositories***后(本地文件夹名也改成相同),成功运行,推测可能是本地仓库的路径名中含有了repository关键字的原因
- maven中的基本关键字:
Project
POM
groupId
Artifact
dependencies
dependency
dependencyManagement
repository
optional
scope