class path resource [applicationContext.xml] cannot be opened because it does not exist的解决办法
IDEA项目出现这个问题的原因,就是识别不了[applicationContext.xml]的存在
解决步骤:
- 点击 File
- 点击 Project Settings
- 选择 Modules
- 选择 当前项目
- 选择 Dependencies
- 选择 +号
- 选择 JAR +Directories
- 选择 当前项目resources文件夹(即applicationContext.xml所在的文件夹),添加即可
- 重新RUN项目就可以了