IDEA新建Spring配置文件的方法

原地址:点击打开链接

默认创建的maven项目,右键新建文件时,无Spring Config选项。

解决方法为:在pom.xml中配置spring依赖,配置好后就能看到这个新建选项了。

  • 配置依赖
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>4.2.5.RELEASE</version>
        </dependency>

猜你喜欢

转载自blog.csdn.net/coder_daniu/article/details/80993790