<一>
没学过用maven管理项目,学spring本来是以为要下载依赖包,所以捣鼓了一下本地导入,
但后面知道,其实可以在pom.xml从远程仓库自动导入jar包


idea里集成的maven及日常命令,昨天,在Dependencies下基本都是报红的,
所以我将pom.xml的<dependency></dependency>标签里的spring四个核心重新导入了一下,
用的是上面的clean和install命令,如果导入成功,终端窗口会显示build success!
但如果是导入时,<version>标签报红,就需要将所有依赖标签删掉,Ctrl+S保存再添加依赖包。
<二>
然后就是今天的Spring_IOC的小栗子,
会发现当我在applicationContext.xml中写好<bean>标签时,发现报错
Caused by: java.io.FileNotFoundException: class path resource [aapp.xml] cannot be opened because it does not exist
此时就是需要检查各文件命名,然后发现我的resources没有设置为资源文件,所以,在idea中,右击文件夹-Mark Derectory As-Resources Root