搭建本地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中配置:
完了。