原地址:点击打开链接
默认创建的maven项目,右键新建文件时,无Spring Config选项。
解决方法为:在pom.xml中配置spring依赖,配置好后就能看到这个新建选项了。
- 配置依赖
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.2.5.RELEASE</version>
</dependency>
