Spring Boot Archetype

Build Status Maven Central GitHub Release License

Spring Boot Archetype 将帮助你快速生成 Spring Boot 项目。

注意!

前置条件

特点

运行

创建项目

运行以下脚本即可创建项目,脚本中包含 ${groupId}${artifactId}${version}${package} 4 个变量,可根据实际情况灵活改变。

变量 必填 默认值
groupId
artifactId
version 1.0.0-SNAPSHOT
package
mvn archetype:generate -DarchetypeGroupId=com.github.drtrang -DarchetypeArtifactId=maven-archetype-springboot -DarchetypeVersion=1.0.1 -DinteractiveMode=false -DarchetypeCatalog=local -DgroupId=${groupId} -DartifactId=${artifactId} -Dversion=${version} -Dpackage=${package}

启动项目

在项目的根路径下执行以下脚本:

mvn spring-boot:run

启动后即可通过浏览器访问该项目,默认端口号为 8080

http://localhost:8080

项目自带 Swagger2,便于查看文档和调试:

http://localhost:8080/swagger-ui.html

swagger2

详细介绍

Spring Boot 的 Maven 项目原型

集成 Intellij IDEA

Note:Add Archetype 步骤只需执行一次,以后可直接选择 maven-archetype-springboot:1.0.1

idea2

Change Log

Release Notes

TODO

任何意见和建议可以提 ISSUE,我会酌情加到 TODO List,一般情况一周内迭代完毕。

About Me

QQ:349096849
Email:[email protected]
Blog:Trang's Blog