How to create Spring MVC application with Maven structure in Intellij IDEA 13.1?

后端 未结 3 1738
借酒劲吻你
借酒劲吻你 2021-02-01 03:50

I want to to create new Spring MVC project in Maven structure using Intellij IDEA but can\'t do that. actually i want to creat

3条回答
  •  眼角桃花
    2021-02-01 04:37

    All you need to do is the following.

    Click File -> New Project and then:

    First add this Maven archetype (from the button on top right)

    enter image description here

    That archetype will help you bootstrap the project by providing some Spring configuration code and must be present in your local Maven repository (directions are provided on how to do that in the link I sent - it's very easy).

    After adding the archetype just do like in the following screenshot:

    enter image description here

    The next screen just asks you for the the GroupId, ArtifactId and Version of your project. The following screens are trivial.

    That's it!

    Note that you can use any archetype you like (although the one I supplied seems to be very much up to date). If you find a better one than the one I supplied, feel free to use it. You can also write your own without too much trouble.

提交回复
热议问题