代运行提示-错误“org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist”

今天入门Spring与MyBatis的融合,但使用Eclipse新建Web Dynamic Project一直不是默认的新建样子,于是决定使用IDEA写。

写着写着,遇到了错误,因为身边同学都是Eclipse,所以就上网查询。

终于了解到,原来是resources文件夹没有标注为Resources Root,因为在IDEA中我是手动建立的,所以需要标注。