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>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With