使用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"
...