一、搭載本身的本地spring initialzrjava
因爲https://start.spring.io常常會上不去,致使偶爾須要建立spring boot項目的時候很尷尬,所以能夠在本地建立git
二、克隆代碼github
git clone https://github.com/spring-io/initializr.git spring
三、 在此項目的根目錄下,執行mvn clean install -Pfull (前提須要安裝好maven)bash
四、當看到以下信息:maven
[INFO] Spring Initializr ................................. SUCCESS [ 15.587 s] [INFO] Spring Initializr :: Generator .................... SUCCESS [ 55.248 s] [INFO] Spring Initializr :: Web .......................... SUCCESS [01:04 min] [INFO] Spring Initializr :: Actuator ..................... SUCCESS [ 12.848 s] [INFO] Spring Initializr :: Docs ......................... SUCCESS [ 40.392 s] [INFO] Spring Initializr :: Service ...................... SUCCESS [ 29.324 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:38 min [INFO] Finished at: 2018-03-05T16:01:01+08:00 [INFO] Final Memory: 59M/262M [INFO] ------------------------------------------------------------------------
表明已經安裝成功code
五、項目已經install到你的本地倉庫或者你的遠程中央倉庫server
/Users/sendo/.m2/repository/io/spring/initializr/initializr-service/0.6.0.BUILD-SNAPSHOT/initializr-service-0.6.0.BUILD-SNAPSHOT.jarget
六、執行該jar文件it
java -jar initializr-service-0.6.0.BUILD-SNAPSHOT.jar --server.port=8081
七、打開網頁,若是現實以下,就表明成功: