Intellij Idea and Spring and Maven: add platform support

I don't know why maven doesn't add Spring to Intellij's Add Framework Support window. I need this support so that Intellij can generate some files like dispatcher-servlet.xml. I don't know who is responsible for adding Spring to this window, maven or Intellij? I added Spring dependency, all plugins are installed. I have Ultimate Intellij 2017.1 version.

pom.xml

<groupId>com.test</groupId>
    <artifactId>test</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>4.3.7.RELEASE</version>
        </dependency>
    </dependencies>
</project>

      

enter image description here

enter image description here

enter image description here

+3


source to share


1 answer


Go to File> Project Structure

You will see Spring (your project name). In this case, my project name HelloWorldDemo

. Then you just right click on Spring ( HelloWorldDemo

) and select delete



Then go back to the main screen. Right click on your project name> Add Framework Support. Then you will see Spring MVC.

Hope this helps. This is my first answer to StackOverFlow. Sorry if I am wrong in posting answers.

+6


source