如何在Intellij IDEA 13.1中使用Maven结构创建Spring MVC应用程序? [英] How to create Spring MVC application with Maven structure in Intellij IDEA 13.1?

查看:148
本文介绍了如何在Intellij IDEA 13.1中使用Maven结构创建Spring MVC应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Intellij IDEA Maven 结构中创建新的 Spring MVC 项目但不能这样做。实际上我想创建项目,如 mkyong.com 样本,如这个

I want to to create new Spring MVC project in Maven structure using Intellij IDEA but can't do that. actually i want to create project like mkyong.com samples, like this.

注意

我是 Intellij IDEA 的新手,并希望创建新项目而不是从现有项目。

I'm new to Intellij IDEA and want to create new project not import from existing project.

推荐答案

您需要做的就是以下几点。

All you need to do is the following.

点击文件 - > 新项目然后:

Click File -> New Project and then:

首先添加这个 Maven原型(来自右上角的按钮)

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

该原型将通过提供一些Spring配置代码来帮助您引导项目,并且必须存在于您的你当地的Maven资料库(如何在我发送的链接中提供指示 - 这很简单)。

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:

下一个屏幕只是要求你输入 GroupId ArtifactId 和您项目的版本。以下屏幕是微不足道的。

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

就是这样!

请注意,您可以使用您喜欢的任何原型(尽管我提供的那个似乎是非常新的)。如果您找到比我提供的更好的一个,请随意使用它。你也可以自己编写自己的东西。

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.

这篇关于如何在Intellij IDEA 13.1中使用Maven结构创建Spring MVC应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆