在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kolorobot/spring-mvc-quickstart-archetype开源软件地址(OpenSource Url):https://github.com/kolorobot/spring-mvc-quickstart-archetype开源编程语言(OpenSource Language):Java 73.3%开源软件介绍(OpenSource Introduction):Spring MVC Quickstart Maven ArchetypeSummaryThe project is a Maven archetype for Spring MVC web application. Generated project characteristics
Prerequisites
Create a project mvn archetype:generate \
-DarchetypeGroupId=pl.codeleak \
-DarchetypeArtifactId=spring-mvc-quickstart \
-DarchetypeVersion=5.0.1 \
-DgroupId=my.groupid \
-DartifactId=my-artifactId \
-Dversion=version \
-DarchetypeRepository=http://kolorobot.github.io/spring-mvc-quickstart-archetype Note: The above command will bootstrap a project using the archetype published here: http://kolorobot.github.io/spring-mvc-quickstart-archetype Run the projectNavigate to newly created project directory ( mvn test tomcat7:run
Test in the browser
Note: No additional services are required in order to start the application. Mongo DB configuration is in place but it is not used in the code. Create a new project in IntelliJ
Note: If you would like to create a project using archetype published in your local repository, skip repository field and make sure it is installed locally (see below). Creating a new project in Spring Tool Suite
Note: Remember so select If you have any troubles with installation in Eclipse, you may want to have a look at this issue: #74 Install archetype locallyTo install the archetype in your local repository execute the following commands: git clone https://github.com/kolorobot/spring-mvc-quickstart-archetype.git
cd spring-mvc-quickstart-archetype
mvn clean install Create a project from a local repositoryCreate a new empty directory for your project and navigate into it and then run: mvn archetype:generate \
-DarchetypeGroupId=pl.codeleak \
-DarchetypeArtifactId=spring-mvc-quickstart \
-DarchetypeVersion=5.0.1 \
-DgroupId=my.groupid \
-DartifactId=my-artifactId \
-Dversion=version Note: The above command will bootstrap a project using the archetype published in your local repository. Switching to PostgreSQL
Enabling MongoDB repositories
Now you can add repositories to your project:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论