Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用curl获取Spring初始值设定项的所有依赖项的列表_Spring_Spring Boot - Fatal编程技术网

使用curl获取Spring初始值设定项的所有依赖项的列表

使用curl获取Spring初始值设定项的所有依赖项的列表,spring,spring-boot,Spring,Spring Boot,在中,它说明如何使用curl创建spring项目 例如 我的问题是,如何使用curl获取所有依赖项的列表 输出应该如下所示 # output of `curl ...` to get all dependencies of Spring Initializr ... web devtools ... 也许已经太晚了,你不再需要了,但是可以帮助其他人 有一个url用于检索相关信息,如版本、选项和依赖项 curl -H 'Accept: application/json' https://star

在中,它说明如何使用
curl
创建spring项目

例如

我的问题是,如何使用
curl
获取所有依赖项的列表

输出应该如下所示

# output of `curl ...` to get all dependencies of Spring Initializr
...
web
devtools
...

也许已经太晚了,你不再需要了,但是可以帮助其他人

有一个url用于检索相关信息,如版本、选项和依赖项

curl -H 'Accept: application/json' https://start.spring.io
如果只想筛选依赖项的名称,可以在帮助下使用以下命令请求:

curl -H 'Accept: application/json' https://start.spring.io | jq '.dependencies.values[].values[].id'
结果是这样的:

"devtools"
"lombok"
"configuration-processor"
"web"
"webflux"
"data-rest"
"session"
"data-rest-explorer"
"data-rest-hal"
...

也许已经太晚了,你不再需要了,但是可以帮助其他人

有一个url用于检索相关信息,如版本、选项和依赖项

curl -H 'Accept: application/json' https://start.spring.io
如果只想筛选依赖项的名称,可以在帮助下使用以下命令请求:

curl -H 'Accept: application/json' https://start.spring.io | jq '.dependencies.values[].values[].id'
结果是这样的:

"devtools"
"lombok"
"configuration-processor"
"web"
"webflux"
"data-rest"
"session"
"data-rest-explorer"
"data-rest-hal"
...