我们在pom.xml文件中添加Spring依赖
<dependency>
<groupID>org.springframework</groupID>
<artifatID>spring-context</artifactID>
<version>4.2.6 RELEASE</version>
</dependency>
添加Spring配置文件
右键main文件夹
正常我花横线的位置会有一个XML Configuration File
他的子文件,有一个Spring Config
点进去创建Spring配置文件(命名为 applicationContext.xml)
没有这个XML Configuration File菜单项,我觉得应该是缺少缺少Spring(依赖) 的支持或者其他需要XML配置的插件引起的!凡是idea环境存在像JSTL等应该会有XML Configuration File相关选项。 或者如果你的IDEA是社区版本的也是不行的,社区版本支持很少******