1、下载gradle-4.5,并配置环境

Gradle 构建springBoot项目

Gradle 构建springBoot项目

2、验证gradle配置和jdk配置

Gradle 构建springBoot项目

3、下载springBoot和SpringMvc框架(https://start.spring.io/

Gradle 构建springBoot项目

4、 找到项目并且进入到项目根目录gradle构建项目

Gradle 构建springBoot项目

5、下载依赖后,构建成功

Gradle 构建springBoot项目

Gradle 构建springBoot项目

6、启动项目

a.生成项目的build中的libs中找jar包

Gradle 构建springBoot项目

b.执行 java -jar build/libs/initializr-start-0.0.1-SNAPSHOT.jar命令启动程序

Gradle 构建springBoot项目

c.tomcat服务起来

Gradle 构建springBoot项目

d 页面

Gradle 构建springBoot项目

7、关闭服务ctrl+c

 Gradle 构建springBoot项目

相关文章:

  • 2021-05-10
  • 2021-10-15
  • 2021-04-13
  • 2021-05-03
  • 2018-04-15
  • 2021-06-08
  • 2021-02-20
猜你喜欢
  • 2021-06-02
  • 2018-07-07
  • 2021-08-14
  • 2021-08-21
  • 2021-09-11
  • 2021-04-06
相关资源
相似解决方案