Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Idea and Spring and Maven: Add Frameworks Support

I don't know, why maven don't add Spring to the Intellij "Add Frameworks Support" window. I need this support to let Intellij generate some files like dispatcher-servlet.xml. I don't know which is responsible to add Spring to this window, maven or Intellij? I added spring dependency, all plugin 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

like image 588
Sam Joos Avatar asked Apr 02 '17 12:04

Sam Joos


1 Answers

Go to File > Project Structure

You're gonna see Spring (Your project's name). In this case, my project's name is HelloWorldDemo. Then you just right click at Spring (HelloWorldDemo) and choose delete

Then back to the main screen. Right click at your project's name > Add Framework Support. Then you're gonna see Spring MVC appears.

I hope this helps. This is my first answer at StackOverFlow. Sorry at all if I do some mistakes in posting answers.

like image 70
Travis Le Avatar answered Oct 09 '22 03:10

Travis Le