Building a Spring boot project with Gradle

I just learned that Gradle builds Spring boot projects, although it feels more convenient to use ideas to build Spring boot projects. But remember

首先登录
http://start.spring.io/
来初始化一个一个spring boot 的web项目

As shown below:
write picture description here

第二步、下载Gradle 
登录https://gradle.org/

第三步、配置好电脑的环境变量

write picture description here

Then after configuring everything

gradle -v查看是否配置好了

write picture description here

Then find the spring boot initialization file you just downloaded

write picture description here

Then open the command window directly here shift+right mouse button

write picture description here

After starting the build, a build folder will appear, open it and then as shown
write picture description here

Then compile this jar package with java
command is java -jar build/libs/initializr-start-0.0.1-SNAPSHOT.jar
write picture description here

The address bar opens localhost:8080
write picture description here

succeeded

Blogging is not easy. Just look at your own notes

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325186325&siteId=291194637
Recommended