spring 3 MVC 应用程序是否有 maven 2 原型?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2757269/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 04:03:38  来源:igfitidea点击:

Is there a maven 2 archetype for spring 3 MVC applications?

springspring-mvcmaven-2maven-archetype

提问by gregor

I'm experimenting with the spring 3 MVC framework. Since i use maven 2 to manage my project, i'm searching for a archetype to create a spring 3 MVC application.

我正在试验 spring 3 MVC 框架。由于我使用 maven 2 来管理我的项目,因此我正在寻找一种原型来创建 spring 3 MVC 应用程序。

采纳答案by Hussain Fakhruddin

You can use STS(spring tool suite) a new spring MVC template project creates a working application using spring 3.

您可以使用STS(spring 工具套件)一个新的 spring MVC 模板项目使用 spring 3 创建一个工作应用程序。

Or you can using Spring Rooto give a working foundation to your project.

或者您可以使用Spring Roo为您的项目提供工作基础。

回答by glaz666

I also couldn't find useful archetypes, so I have created my own. You can find it here. If you find anything you'd like to add, please don't hesitate to mail me or send a patch

我也找不到有用的原型,所以我创建了自己的原型。你可以在这里找到它。如果你发现任何你想添加的东西,请不要犹豫给我发邮件或发送补丁

回答by AzizSM

Spring MVC quickstart archetypeis available on GitHub, courtesy of kolorobot. Good instructions are provided on how to install it to your local Maven repo and use it to create a new Spring MVC project. He's even helpfully included the Tomcat 7 Maven plugin in the archetypical project so that the newly created Spring MVC can be run from the command line without having to manually deploy it to an application server.

Spring MVC 快速入门原型可在 GitHub 上获得,由kolorobot 提供。提供了关于如何将其安装到本地 Maven 存储库并使用它来创建新的 Spring MVC 项目的良好说明。他甚至在原型项目中帮助包含了 Tomcat 7 Maven 插件,以便新创建的 Spring MVC 可以从命令行运行,而无需手动将其部署到应用程序服务器。

Kolorobot's example application includes the following:

Kolorobot 的示例应用程序包括以下内容:

  • No-xml Spring MVC 3.2 web application for Servlet 3.0 environment
  • Apache Tiles with configuration in place,
  • Bootstrap
  • JPA 2.0 (Hibernate/HSQLDB)
  • JUnit/Mockito
  • Spring Security 3.1
  • 适用于 Servlet 3.0 环境的 No-xml Spring MVC 3.2 Web 应用程序
  • 配置到位的 Apache Tiles,
  • 引导程序
  • JPA 2.0(休眠/HSQLDB)
  • JUnit/Mockito
  • 春季安全 3.1

回答by Pascal Thivent

AppFuseand AppFuse Lighthave been upgraded to use Spring 3 so I guessyou could use one of the appfuse archetypes.

AppFuseAppFuse Light已升级为使用 Spring 3,所以我您可以使用 appfuse原型之一

But what is exactly a Spring MVC application if not a regular webapp with some dependencies on Spring 3 artefacts?

但是,如果不是对 Spring 3 人工制品具有某些依赖性的常规 Web 应用程序,那么到底什么是 Spring MVC 应用程序?

回答by despot

From the springsource forum:

来自springsource 论坛

In Spring Source Tool Suite.

在 Spring 源工具套件中。

Go to New -> Other -> Spring Source Tool Suite -> Spring Template Project -> Spring MVC Project

转到新建 -> 其他 -> Spring 源工具套件 -> Spring 模板项目 -> Spring MVC 项目

enter the details and click Finish.

输入详细信息,然后单击完成。

回答by Tahir Akhtar

The Codehaus Maven User Archetypes Listhas several archetypes including two from app-fuse that use Spring MVC.

Codehaus Maven 用户原型列表有几个原型,包括来自 app-fuse 的两个使用 Spring MVC 的原型。

回答by Jan-Terje S?rensen

This archetype creates a Java web application that uses Spring MVC framework, Angular and Event Sourcing.

该原型创建了一个使用 Spring MVC 框架、Angular 和 Event Sourcing 的 Java Web 应用程序。

mvn archetype:generate \
 -DarchetypeGroupId=no.bouvet \
 -DarchetypeArtifactId=maven-archetype-eventsourcing \
 -DarchetypeVersion=1.0.2 \
 -DgroupId=com.domain.myapp \
 -DartifactId=myapp

You can find the source here - maven-archetype-eventsourcing

你可以在这里找到源代码 - maven-archetype-eventsourcing

And read the blogg - Get your Event Sourced web application development started with one line using Maven!

并阅读博客 -使用 Maven 从一行开始开发事件源 Web 应用程序!

回答by Robert Greathouse

What I do is create a new Spring Project and one of the selections available in STS Simple Spring Web Maven; it sets up a Spring 3 Maven webapp, just modify the pom to Spring 4 and do a clean install from the Run Config.

我所做的是创建一个新的 Spring 项目和 STS Simple Spring Web Maven 中可用的选项之一;它设置了一个 Spring 3 Maven webapp,只需将 pom 修改为 Spring 4 并从运行配置中进行全新安装。

回答by Pablo Jomer

A friend and I created this spring boiler plate for SPA applications. Could perhaps be useful to you https://github.com/PabloK/SpringRESTboilerplate

我和一个朋友为 SPA 应用程序创建了这个 spring 样板。也许对你有用https://github.com/PabloK/SpringRESTboilerplate

回答by khmarbaise

As far as i know it does not exist. But why didn't create your own?

据我所知它不存在。但是为什么不创建自己的呢?