搭建本地Spring Initializr服务(2020/4/17)

本文详细介绍了如何从源码构建本地的Spring Initializr服务,包括下载源码、清理安装和本地运行应用程序的步骤,以及解决可能遇到的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

搭建本地Spring Initializr服务(2020/4/17)

网上看了很多相同的教程,也根据教程搭建成功了。但是我在看这些教程的时候都发现了一个很关键的东西,最后都是启动initializr-service,但initializr-service在0.6本版后被移除了。然后我就纳闷这个initializr-service被移除后去了哪里。于是我就去了Spring Initializr项目的GitHub网站查看:https://github.com/spring-io/initializr/releases

在0.7发行版本的新特性中有写道:

  • Move initializr-service to a separate github repository #656
    (将这个initializr-service独立成一个新项目)

我们进去看看开发人员怎么说:
We had that conversation a few times already and I’d like that we settle this once for good. This repository has two usages really:

Manage the development of Spring Initializr as a reusable library
Manage our production instance (start.spring.io)

哦,原来是成为一个start.spring.io项目了。
这就很明确了,根据README.adoc操作就行了。
具体流程如下:
Building from Source

$ git clone https://github.com/spring-io/start.spring.io.git
$ cd start.spring.io/
 $ mvn clean install -DskipTests

If building start-client fails, you may have an outdated cache that can be deleted as follows:

$ cd start-client
$ rm -rf .cache node_modules

Running the app locally

$ cd start-site
$ mvn spring-boot:run

然后访问localhost:8080
在这里插入图片描述
这样就大功告成了。

在idea中配置:
在这里插入图片描述
完了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值