搭建Spring Initializr服务器
程序员文章站
2022-06-14 17:26:06
前言 按照网上很多教程,出错特别多。首先是GitHub和maven仓库的网络环境比较差,踩了很多坑;其次是SpringInitializr更新迭代几个版本,0.7.0我也没能弄成功。索性就用了旧版本0.6.0 一、运行环境 Maven版本:3.5.3 JDK:1.8 Windows:win7 x64 ......
前言
按照网上很多教程,出错特别多。首先是github和maven仓库的网络环境比较差,踩了很多坑;其次是springinitializr更新迭代几个版本,0.7.0我也没能弄成功。索性就用了旧版本0.6.0
一、运行环境
maven版本:3.5.3
jdk:1.8
windows:win7 x64
spring initilizr版本:v0.6.0
二、设置使用阿里的maven仓库
maven安装目录中,conf文件夹下settings配置文件mirrors节点增加以下子节点:
<mirror> <id>nexus-aliyun</id> <mirrorof>central</mirrorof> <name>nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
三、下载并编译springinitializr
(一)下载源码
git或者其他方式下载,主页:
windows下比较懒,我就直接进 下载了zip
(二)编译
试了网上很多mvnw clean install或者mvn clean install的命令,可能环境有点差异,几个子项目五花八门,test执行很多报错,所以忽略了test。在initializr文件夹下执行以下命令成功:
mvn clean install -dskiptests
成功界面(转载1):
最后到本地maven仓库文件夹下,确认下是否有以上几个jar包,版本为0.6.0,截图如下:
(三)idea中新建springboot项目并模仿service文件夹内的方式增加以来,修改配置文件:
(1)修改pom.xml,我用了war的打包方式,方便部署到服务器。
<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <parent> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-parent</artifactid> <version>2.1.6.release</version> <relativepath/> <!-- lookup parent from repository --> </parent> <groupid>com.test</groupid> <artifactid>springinitializr</artifactid> <version>0.0.1-snapshot</version> <name>springinitializr</name> <description>springinitializr test project</description> <packaging>war</packaging> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-actuator</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-web</artifactid> </dependency> <dependency> <groupid>io.spring.initializr</groupid> <artifactid>initializr-web</artifactid> <version>0.6.0.release</version> </dependency> <dependency> <groupid>io.spring.initializr</groupid> <artifactid>initializr-actuator</artifactid> <version>0.6.0.release</version> </dependency> <dependency> <groupid>javax.cache</groupid> <artifactid>cache-api</artifactid> </dependency> <dependency> <groupid>org.ehcache</groupid> <artifactid>ehcache</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-devtools</artifactid> <optional>true</optional> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-test</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>io.spring.initializr</groupid> <artifactid>initializr-generator</artifactid> <type>test-jar</type> <scope>test</scope> <version>0.6.0.release</version> </dependency> <dependency> <groupid>xmlunit</groupid> <artifactid>xmlunit</artifactid> <scope>test</scope> <version>1.5</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> </plugin> </plugins> </build> </project>
(2)修改配置文件application.yml
local: gcp: version: 1.0.0.rc1 logging: level: org.springframework.core.env: warn org.springframework.jndi: warn server: compression: enabled: true mime-types: application/json,text/css,text/html min-response-size: 2048 spring: jackson: serialization: write-dates-as-timestamps: false resources: chain: strategy: content: enabled: true initializr: env: boms: azure: groupid: com.microsoft.azure artifactid: azure-spring-boot-bom versionproperty: azure.version mappings: - versionrange: "[1.5.4.release,2.0.0.release)" version: 0.2.4 - versionrange: "2.0.0.release" version: 2.0.4 codecentric-spring-boot-admin: groupid: de.codecentric artifactid: spring-boot-admin-dependencies versionproperty: spring-boot-admin.version mappings: - versionrange: "[1.5.9.release,2.0.0.m1)" version: 1.5.7 - versionrange: "[2.0.0.m1,2.0.x.build-snapshot)" version: 2.0.1 - versionrange: "2.0.x.build-snapshot" version: 2.0.2-snapshot repositories: sonatype-snapshots keycloak: groupid: org.keycloak.bom artifactid: keycloak-adapter-bom versionproperty: keycloak.version version: 3.4.2.final spring-cloud: groupid: org.springframework.cloud artifactid: spring-cloud-dependencies versionproperty: spring-cloud.version order: 50 mappings: - versionrange: "[1.2.3.release,1.3.0.release)" version: angel.sr6 - versionrange: "[1.3.0.release,1.4.0.release)" version: brixton.sr7 - versionrange: "[1.4.0.release,1.4.x.release]" version: camden.sr7 - versionrange: "[1.5.0.release,1.5.x.release]" version: edgware.sr4 - versionrange: "[1.5.x.build-snapshot,2.0.0.m1)" version: edgware.build-snapshot repositories: spring-snapshots,spring-milestones - versionrange: "[2.0.0.m3, 2.0.0.m5)" version: finchley.m2 repositories: spring-milestones - versionrange: "[2.0.0.m5, 2.0.0.m5]" version: finchley.m3 repositories: spring-milestones - versionrange: "[2.0.0.m6, 2.0.0.m6]" version: finchley.m4 repositories: spring-milestones - versionrange: "[2.0.0.m7, 2.0.0.m7]" version: finchley.m5 repositories: spring-milestones - versionrange: "[2.0.0.rc1, 2.0.0.rc1]" version: finchley.m6 repositories: spring-milestones - versionrange: "[2.0.0.rc2,2.0.0.rc2]" version: finchley.m7 repositories: spring-milestones - versionrange: "[2.0.0.release,2.0.0.release]" version: finchley.m9 repositories: spring-milestones - versionrange: "[2.0.1.release,2.0.2.release)" version: finchley.rc1 repositories: spring-milestones - versionrange: "[2.0.2.release,2.0.3.release)" version: finchley.rc2 repositories: spring-milestones - versionrange: "[2.0.3.release,2.0.x.build-snapshot)" version: finchley.release - versionrange: "2.0.x.build-snapshot" version: finchley.build-snapshot repositories: spring-snapshots,spring-milestones spring-cloud-gcp: groupid: org.springframework.cloud artifactid: spring-cloud-gcp-dependencies versionproperty: spring-cloud-gcp.version additionalboms: [spring-cloud] version: ${local.gcp.version} repositories: spring-milestones spring-cloud-services: groupid: io.pivotal.spring.cloud artifactid: spring-cloud-services-dependencies versionproperty: spring-cloud-services.version additionalboms: [spring-cloud] mappings: - versionrange: "[1.3.0.release,1.4.0.release)" version: 1.2.1.release - versionrange: "[1.4.0.release,1.4.x.release]" version: 1.5.0.release - versionrange: "[1.5.0.release,1.5.x.build-snapshot]" version: 1.6.3.release - versionrange: "[2.0.0.release,2.0.x.release]" version: 2.0.0.release - versionrange: "2.0.x.build-snapshot" version: 2.0.1.build-snapshot repositories: spring-snapshots,spring-milestones spring-cloud-task: groupid: org.springframework.cloud artifactid: spring-cloud-task-dependencies versionproperty: spring-cloud-task.version order: 30 mappings: - versionrange: "[1.3.0.release, 1.4.0.release]" version: 1.0.3.release - versionrange: "[1.4.0.release, 1.5.0.rc1)" version: 1.1.2.release - versionrange: "[1.5.0.rc1, 2.0.0.m1)" version: 1.2.3.release - versionrange: "[2.0.0.m2, 2.0.0.release)" version: 2.0.0.m3 repositories: spring-milestones - versionrange: "2.0.0.release" version: 2.0.0.release spring-statemachine: groupid: org.springframework.statemachine artifactid: spring-statemachine-bom versionproperty: spring-statemachine.version mappings: - versionrange: "[2.0.0.rc1,2.0.0.rc1]" version: 2.0.0.m4 repositories: spring-milestones - versionrange: "[2.0.0.rc2,2.0.0.rc2]" version: 2.0.0.m5 repositories: spring-milestones - versionrange: "2.0.0.release" version: 2.0.1.release vaadin: groupid: com.vaadin artifactid: vaadin-bom versionproperty: vaadin.version mappings: - versionrange: "[1.3.0.release, 1.5.0.m1)" version: 7.7.7 - versionrange: 1.5.0.m1 version: 8.4.4 gradle: dependency-management-plugin-version: 0.6.0.release kotlin: default-version: 1.2.41 repositories: sonatype-snapshots: name: sonatype snapshots url: https://oss.sonatype.org/content/repositories/snapshots/ snapshotsenabled: true dependencies: - name: core content: - name: devtools id: devtools groupid: org.springframework.boot artifactid: spring-boot-devtools scope: runtime description: spring boot development tools versionrange: 1.3.0.release starter: false links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#using-boot-devtools - name: security id: security description: secure your application via spring-security weight: 100 links: - rel: guide href: https://spring.io/guides/gs/securing-web/ description: securing a web application - rel: guide href: https://spring.io/guides/tutorials/spring-boot-oauth2/ description: spring boot and oauth2 - rel: guide href: https://spring.io/guides/gs/authenticating-ldap/ description: authenticating a user with ldap - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-security - name: lombok id: lombok groupid: org.projectlombok artifactid: lombok scope: compileonly description: java annotation library which helps to reduce boilerplate code and code faster mappings: - versionrange: "[1.2.0.release,1.4.0.m1)" version: 1.16.6 starter: false - name: configuration processor id: configuration-processor groupid: org.springframework.boot artifactid: spring-boot-configuration-processor scope: compileonly description: generate metadata for your custom configuration keys versionrange: 1.2.0.release starter: false links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#configuration-metadata-annotation-processor - name: session id: session groupid: org.springframework.session artifactid: spring-session-core description: api and implementations for managing a user’s session information versionrange: "1.3.0.release" starter: false mappings: - versionrange: "[1.3.0.release,2.0.0.m2]" artifactid: spring-session - name: cache id: cache description: spring's cache abstraction versionrange: 1.3.0.release links: - rel: guide href: https://spring.io/guides/gs/caching/ description: caching data with spring - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-caching - name: validation id: validation description: jsr-303 validation infrastructure (already included with web) versionrange: 1.3.0.release links: - rel: guide href: https://spring.io/guides/gs/validating-form-input/ title: validating form input - name: retry id: retry groupid: org.springframework.retry artifactid: spring-retry description: provide declarative retry support via spring-retry versionrange: 1.3.0.release starter: false - name: jta (atomikos) id: jta-atomikos description: jta distributed transactions via atomikos versionrange: 1.2.0.release links: - rel: guide href: https://spring.io/guides/gs/managing-transactions/ description: managing transactions - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-jta-atomikos - name: jta (bitronix) id: jta-bitronix description: jta distributed transactions via bitronix versionrange: 1.2.0.release links: - rel: guide href: https://spring.io/guides/gs/managing-transactions/ description: managing transactions - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-jta-bitronix - name: jta (narayana) id: jta-narayana description: jta distributed transactions via narayana versionrange: 1.4.0.release links: - rel: guide href: https://spring.io/guides/gs/managing-transactions/ description: managing transactions - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-jta-narayana - name: aspects id: aop description: create your own aspects using spring aop and aspectj - name: web content: - name: web id: web description: full-stack web development with tomcat and spring mvc weight: 100 facets: - web - json links: - rel: guide href: https://spring.io/guides/gs/rest-service/ description: building a restful web service - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-developing-web-applications - rel: guide href: https://spring.io/guides/gs/serving-web-content/ description: serving web content with spring mvc - rel: guide href: https://spring.io/guides/tutorials/bookmarks/ description: building rest services with spring - name: reactive web id: webflux versionrange: 2.0.0.m1 description: reactive web development with netty and spring webflux weight: 90 facets: - json - name: rest repositories id: data-rest weight: 10 facets: - json description: exposing spring data repositories over rest via spring-data-rest-webmvc links: - rel: guide href: https://spring.io/guides/gs/accessing-data-rest/ description: accessing jpa data with rest - rel: guide href: https://spring.io/guides/gs/accessing-neo4j-data-rest/ description: accessing neo4j data with rest - rel: guide href: https://spring.io/guides/gs/accessing-mongodb-data-rest/ description: accessing mongodb data with rest - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#howto-use-exposing-spring-data-repositories-rest-endpoint - name: rest repositories hal browser id: data-rest-hal description: browsing spring data rest repositories in your browser groupid: org.springframework.data artifactid: spring-data-rest-hal-browser versionrange: 1.3.0.release - name: hateoas id: hateoas description: hateoas-based restful services versionrange: 1.2.2.release links: - rel: guide href: https://spring.io/guides/gs/rest-hateoas/ description: building a hypermedia-driven restful web service - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-spring-hateoas starter: false - name: web services id: web-services description: contract-first soap service development with spring web services aliases: - ws mappings: - versionrange: 1.4.0.m3 artifactid: spring-boot-starter-web-services - versionrange: "[1.1.0.release,1.4.0.m3)" artifactid: spring-boot-starter-ws links: - rel: guide href: https://spring.io/guides/gs/producing-web-service/ description: producing a soap web service - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-webservices - name: jersey (jax-rs) id: jersey description: restful web services framework with support of jax-rs facets: - json versionrange: 1.2.0.release links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-jersey - name: websocket id: websocket description: websocket development with sockjs and stomp links: - rel: guide href: https://spring.io/guides/gs/messaging-stomp-websocket/ description: using websocket to build an interactive web application - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-websockets - name: rest docs id: restdocs description: document restful services by combining hand-written and auto-generated documentation groupid: org.springframework.restdocs artifactid: spring-restdocs-mockmvc mappings: - versionrange: "[1.2.0.release,1.3.0.rc1)" version: 1.0.1.release scope: test - name: vaadin id: vaadin facets: - web groupid: com.vaadin artifactid: vaadin-spring-boot-starter description: vaadin java web application framework bom: vaadin versionrange: 1.2.0.release mappings: - versionrange: "[1.2.0.release,1.4.0.release)" version: 1.0.2 - versionrange: "[1.4.0.release,1.5.0.m1)" version: 1.2.0 links: - rel: guide href: https://spring.io/guides/gs/crud-with-vaadin/ description: creating crud ui with vaadin - rel: reference href: https://vaadin.com/spring - name: apache cxf (jax-rs) id: cxf-jaxrs groupid: org.apache.cxf artifactid: cxf-spring-boot-starter-jaxrs version: 3.1.11 description: restful web services framework with support of jax-rs versionrange: "[1.4.0.release,2.0.0.m1)" links: - rel: reference href: https://cxf.apache.org/docs/springboot.html#springboot-springbootcxfjax-rsstarter - name: ratpack id: ratpack description: spring boot integration for the ratpack framework groupid: io.ratpack artifactid: ratpack-spring-boot version: 1.1.1 versionrange: "[1.2.0.release,2.0.0.m1)" starter: false - name: mobile id: mobile description: simplify the development of mobile web applications with spring-mobile versionrange : "[1.0.0.release, 2.0.0.m1)" - name: keycloak id: keycloak description: keycloak integration, an open source identity and access management solution. groupid: org.keycloak artifactid: keycloak-spring-boot-starter versionrange: "[1.5.3.release,2.0.0.m1)" bom: keycloak links: - rel: reference href: https://keycloak.gitbooks.io/documentation/securing_apps/topics/oidc/java/spring-boot-adapter.html - name: template engines content: - name: thymeleaf id: thymeleaf description: thymeleaf templating engine weight: 90 keywords: - template links: - rel: guide href: https://spring.io/guides/gs/handling-form-submission/ description: handling form submission - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-spring-mvc-template-engines - name: freemarker id: freemarker description: freemarker templating engine keywords: - template links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-spring-mvc-template-engines - name: mustache id: mustache description: mustache templating engine versionrange: 1.2.2.release keywords: - template links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-spring-mvc-template-engines - name: groovy templates id: groovy-templates description: groovy templating engine facets: - web links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-spring-mvc-template-engines - name: sql content: - name: jpa id: data-jpa description: java persistence api including spring-data-jpa, spring-orm and hibernate weight: 100 aliases: - jpa links: - rel: guide href: https://spring.io/guides/gs/accessing-data-jpa/ description: accessing data with jpa - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-jpa-and-spring-data - name: mysql id: mysql description: mysql jdbc driver groupid: mysql artifactid: mysql-connector-java scope: runtime starter: false links: - rel: guide href: https://spring.io/guides/gs/accessing-data-mysql/ description: accessing data with mysql - name: h2 id: h2 description: h2 database (with embedded support) groupid: com.h2database artifactid: h2 scope: runtime starter: false - name: jdbc id: jdbc description: jdbc databases links: - rel: guide href: https://spring.io/guides/gs/relational-data-access/ description: accessing relational data using jdbc with spring - rel: guide href: https://spring.io/guides/gs/managing-transactions/ description: managing transactions - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-sql - name: mybatis id: mybatis description: persistence support using mybatis links: - rel: guide href: https://github.com/mybatis/spring-boot-starter/wiki/quick-start description: quick start - rel: reference href: http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/ groupid: org.mybatis.spring.boot artifactid: mybatis-spring-boot-starter mappings: - versionrange: "[1.3.0.release,1.4.0.release)" version: 1.1.1 - versionrange: "[1.4.0.release,1.5.0.release)" version: 1.2.2 - versionrange: 1.5.0.release version: 1.3.2 - name: postgresql id: postgresql description: postgresql jdbc driver groupid: org.postgresql artifactid: postgresql mappings: - versionrange: "[1.2.0.release,1.3.0.m1)" version: 9.4-1201-jdbc41 scope: runtime starter: false - name: sql server id: sqlserver description: microsoft sql server jdbc driver versionrange: 1.5.0.rc1 groupid: com.microsoft.sqlserver artifactid: mssql-jdbc scope: runtime starter: false - name: hsqldb id: hsql description: hsqldb database (with embedded support) groupid: org.hsqldb artifactid: hsqldb scope: runtime starter: false - name: apache derby id: derby description: apache derby database (with embedded support) groupid: org.apache.derby artifactid: derby scope: runtime versionrange: 1.2.2.release starter: false - name: liquibase id: liquibase description: liquibase database migrations library groupid: org.liquibase artifactid: liquibase-core starter: false links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#howto-execute-liquibase-database-migrations-on-startup - name: flyway id: flyway description: flyway database migrations library groupid: org.flywaydb artifactid: flyway-core starter: false links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#howto-execute-flyway-database-migrations-on-startup - name: jooq id: jooq description: persistence support using java object oriented querying versionrange: 1.3.0.release links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-jooq - name: nosql content: - name: redis id: data-redis description: redis key-value data store, including spring-data-redis aliases: - redis mappings: - versionrange: 1.4.0.m1 artifactid: spring-boot-starter-data-redis - versionrange: "[1.1.5.release,1.4.0.m1)" artifactid: spring-boot-starter-redis links: - rel: guide href: https://spring.io/guides/gs/messaging-redis/ description: messaging with redis - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-redis - name: reactive redis id: data-redis-reactive description: redis key-value data store, including spring-data-redis versionrange: 2.0.0.m7 links: - rel: guide href: https://spring.io/guides/gs/messaging-redis/ description: messaging with redis - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-redis - name: mongodb id: data-mongodb description: mongodb nosql database, including spring-data-mongodb weight: 50 links: - rel: guide href: https://spring.io/guides/gs/accessing-data-mongodb/ description: accessing data with mongodb - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-mongodb - name: reactive mongodb id: data-mongodb-reactive description: mongodb nosql database, including spring-data-mongodb and the reactive driver versionrange: 2.0.0.m1 weight: 50 links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-mongodb - name: embedded mongodb id: flapdoodle-mongo description: embedded mongodb for testing versionrange: 1.3.0.release groupid: de.flapdoodle.embed artifactid: de.flapdoodle.embed.mongo scope: test starter: false - name: elasticsearch id: data-elasticsearch description: elasticsearch search and analytics engine including spring-data-elasticsearch weight: 10 links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-elasticsearch - name: solr id: data-solr description: apache solr search platform, including spring-data-solr links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-solr - name: cassandra id: data-cassandra description: cassandra nosql database, including spring-data-cassandra versionrange: 1.3.0.rc1 links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-cassandra - name: reactive cassandra id: data-cassandra-reactive description: cassandra nosql database, including spring-data-cassandra and the reactive driver versionrange: 2.0.0.m1 links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-cassandra - name: couchbase id: data-couchbase description: couchbase nosql database, including spring-data-couchbase versionrange: 1.4.0.release links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-couchbase - name: reactive couchbase id: data-couchbase-reactive description: couchbase nosql database, including spring-data-couchbase and the reactive driver versionrange: 2.0.0.m7 links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-couchbase - name: neo4j id: data-neo4j description: neo4j nosql graph database, including spring-data-neo4j versionrange: 1.4.0.release links: - rel: guide href: https://spring.io/guides/gs/accessing-data-neo4j/ description: accessing data with neo4j - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-neo4j - name: gemfire id: data-gemfire description: gemfire distributed data store including spring-data-gemfire versionrange: "[1.1.0.release,2.0.0.m1)" links: - rel: guide href: https://spring.io/guides/gs/accessing-data-gemfire/ description: accessing data with gemfire - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-gemfire - name: integration content: - name: spring integration id: integration description: common spring-integration modules weight: 100 links: - rel: guide href: https://spring.io/guides/gs/integration/ description: integrating data - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-integration - name: rabbitmq id: amqp description: advanced message queuing protocol via spring-rabbit weight: 100 keywords: - messaging links: - rel: guide href: https://spring.io/guides/gs/messaging-rabbitmq/ description: messaging with rabbitmq - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-amqp - name: kafka id: kafka weight: 100 description: kafka messaging support using spring kafka versionrange: 1.5.0.rc1 groupid: org.springframework.kafka artifactid: spring-kafka starter: false keywords: - messaging links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-kafka - name: kafka streams id: kafka-streams weight: 90 description: support for building stream processing applications with apache kafka streams versionrange: 2.0.0.release groupid: org.apache.kafka artifactid: kafka-streams version: 1.0.1 starter: false links: - rel: guide href: https://github.com/spring-cloud/spring-cloud-stream-samples/tree/master/kafka-streams-samples description: samples for using kafka streams with spring cloud stream - rel: reference href: https://docs.spring.io/spring-kafka/docs/current/reference/html/_reference.html#kafka-streams description: kafka streams support in spring kafka - rel: reference href: https://docs.spring.io/spring-cloud-stream/docs/current/reference/htmlsingle/#_kafka_streams_binding_capabilities_of_spring_cloud_stream description: kafka streams binding capabilities of spring cloud stream - name: jms (activemq) id: activemq description: java message service api via apache activemq versionrange: 1.4.0.rc1 links: - rel: guide href: https://spring.io/guides/gs/messaging-jms/ description: messaging with jms - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-activemq - name: jms (artemis) id: artemis description: java message service api via apache artemis versionrange: 1.3.0.release links: - rel: guide href: https://spring.io/guides/gs/messaging-jms/ description: messaging with jms - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-artemis - name: cloud core bom: spring-cloud versionrange: 1.2.3.release content: - name: cloud connectors id: cloud-connectors description: simplifies connecting to services in cloud platforms, including spring-cloud-connector and spring-cloud-cloudfoundry-connector versionrange: 1.2.0.release - name: cloud bootstrap id: cloud-starter description: spring-cloud-context (e.g. bootstrap context and @refreshscope) groupid: org.springframework.cloud artifactid: spring-cloud-starter weight: 100 - name: cloud security id: cloud-security description: secure load balancing and routing with spring-cloud-security groupid: org.springframework.cloud artifactid: spring-cloud-starter-security - name: cloud oauth2 id: cloud-oauth2 description: oauth2 and distributed application patterns with spring-cloud-security groupid: org.springframework.cloud artifactid: spring-cloud-starter-oauth2 - name: cloud task id: cloud-task description: task result tracking and integration with spring batch groupid: org.springframework.cloud artifactid: spring-cloud-starter-task versionrange: "1.3.0.release" bom: spring-cloud-task starter: false mappings: - versionrange: "[1.3.0.release,1.3.x.release]" artifactid: spring-cloud-task-starter - versionrange: "1.4.0.release" - name: cloud config bom: spring-cloud versionrange: 1.2.3.release content: - name: config client id: cloud-config-client description: spring-cloud-config client groupid: org.springframework.cloud artifactid: spring-cloud-starter-config weight: 100 - name: config server id: cloud-config-server description: central management for configuration via a git or svn backend groupid: org.springframework.cloud artifactid: spring-cloud-config-server links: - rel: guide href: https://spring.io/guides/gs/centralized-configuration/ description: centralized configuration - name: vault configuration id: cloud-starter-vault-config description: configuration management with hashicorp vault versionrange: 1.5.3.release starter: false groupid: org.springframework.cloud artifactid: spring-cloud-starter-vault-config - name: zookeeper configuration id: cloud-starter-zookeeper-config description: configuration management with zookeeper and spring-cloud-zookeeper-config versionrange: 1.3.0.release groupid: org.springframework.cloud artifactid: spring-cloud-starter-zookeeper-config - name: consul configuration id: cloud-starter-consul-config description: configuration management with hashicorp consul versionrange: 1.3.0.release groupid: org.springframework.cloud artifactid: spring-cloud-starter-consul-config - name: cloud discovery bom: spring-cloud versionrange: 1.2.3.release content: - name: eureka discovery id: cloud-eureka description: service discovery using spring-cloud-netflix and eureka groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-eureka-client weight: 100 mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-eureka - versionrange: "1.5.0.build-snapshot" - name: eureka server id: cloud-eureka-server description: spring-cloud-netflix eureka server groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-eureka-server links: - rel: guide href: https://spring.io/guides/gs/service-registration-and-discovery/ description: service registration and discovery mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-eureka-server - versionrange: "1.5.0.build-snapshot" - name: zookeeper discovery id: cloud-starter-zookeeper-discovery description: service discovery with zookeeper and spring-cloud-zookeeper-discovery versionrange: 1.3.0.release groupid: org.springframework.cloud artifactid: spring-cloud-starter-zookeeper-discovery - name: cloud foundry discovery id: cloud-cloudfoundry-discovery description: service discovery with cloud foundry versionrange: 1.3.0.release groupid: org.springframework.cloud artifactid: spring-cloud-cloudfoundry-discovery - name: consul discovery id: cloud-starter-consul-discovery description: service discovery with hashicorp consul versionrange: 1.3.0.release groupid: org.springframework.cloud artifactid: spring-cloud-starter-consul-discovery - name: cloud routing bom: spring-cloud versionrange: 1.2.3.release content: - name: zuul id: cloud-zuul description: intelligent and programmable routing with spring-cloud-netflix zuul groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-zuul links: - rel: guide href: https://spring.io/guides/gs/routing-and-filtering/ description: routing and filtering mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-zuul - versionrange: "1.5.0.build-snapshot" - name: gateway id: cloud-gateway groupid: org.springframework.cloud artifactid: spring-cloud-starter-gateway description: intelligent and programmable routing with the reactive spring cloud gateway versionrange: 2.0.0.m5 links: - rel: guide href: https://github.com/spring-cloud-samples/spring-cloud-gateway-sample description: using spring cloud gateway - name: ribbon id: cloud-ribbon description: client side load balancing with spring-cloud-netflix and ribbon groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-ribbon links: - rel: guide href: https://spring.io/guides/gs/client-side-load-balancing/ description: client side load balancing with ribbon and spring cloud mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-ribbon - versionrange: "1.5.0.build-snapshot" - name: feign id: cloud-feign description: declarative rest clients with spring-cloud-netflix feign groupid: org.springframework.cloud artifactid: spring-cloud-starter-openfeign mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-feign - versionrange: "1.5.0.build-snapshot" - name: cloud circuit breaker bom: spring-cloud versionrange: 1.2.3.release content: - name: hystrix id: cloud-hystrix description: circuit breaker with spring-cloud-netflix hystrix groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-hystrix links: - rel: guide href: https://spring.io/guides/gs/circuit-breaker/ description: circuit breaker mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-hystrix - versionrange: "1.5.0.build-snapshot" - name: hystrix dashboard id: cloud-hystrix-dashboard description: circuit breaker dashboard with spring-cloud-netflix hystrix groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-hystrix-dashboard mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-hystrix-dashboard - versionrange: "1.5.0.build-snapshot" - name: turbine id: cloud-turbine description: circuit breaker metric aggregation using spring-cloud-netflix with turbine and server-sent events groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-turbine mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-turbine - versionrange: "1.5.0.build-snapshot" - name: turbine stream id: cloud-turbine-stream description: circuit breaker metric aggregation using spring-cloud-netflix with turbine and spring cloud stream (requires a binder, e.g. kafka or rabbitmq) versionrange: 1.3.0.release groupid: org.springframework.cloud artifactid: spring-cloud-starter-netflix-turbine-stream weight: -1 mappings: - versionrange: "[1.2.3.release,1.5.x.release]" artifactid: spring-cloud-starter-turbine-stream - versionrange: "1.5.0.build-snapshot" - name: cloud tracing bom: spring-cloud versionrange: 1.3.0.release content: - name: sleuth id: cloud-starter-sleuth description: distributed tracing via logs with spring-cloud-sleuth groupid: org.springframework.cloud artifactid: spring-cloud-starter-sleuth - name: zipkin client id: cloud-starter-zipkin description: distributed tracing with an existing zipkin installation and spring-cloud-sleuth-zipkin. alternatively, consider sleuth stream. groupid: org.springframework.cloud artifactid: spring-cloud-starter-zipkin - name: cloud messaging bom: spring-cloud versionrange: 1.2.3.release content: - name: cloud bus id: cloud-bus description: a simple control bus using spring cloud stream (requires a binder, e.g. kafka or rabbitmq) groupid: org.springframework.cloud artifactid: spring-cloud-bus - name: cloud stream id: cloud-stream description: messaging microservices with spring cloud stream (requires a binder, e.g. kafka or rabbitmq) versionrange: 1.3.0.release weight: 90 groupid: org.springframework.cloud artifactid: spring-cloud-stream - name: reactive cloud stream id: reactive-cloud-stream description: reactive messaging microservices with spring cloud stream (requires a binder, e.g. kafka or rabbitmq) versionrange: 2.0.0.rc2 weight: 90 groupid: org.springframework.cloud artifactid: spring-cloud-stream-reactive - name: cloud aws bom: spring-cloud versionrange: 1.2.3.release content: - name: aws core id: cloud-aws description: aws native services from spring-cloud-aws groupid: org.springframework.cloud artifactid: spring-cloud-starter-aws - name: aws jdbc id: cloud-aws-jdbc description: relational databases on aws with rds and spring-cloud-aws-jdbc groupid: org.springframework.cloud artifactid: spring-cloud-starter-aws-jdbc - name: aws messaging id: cloud-aws-messaging description: messaging on aws with sqs and spring-cloud-aws-messaging groupid: org.springframework.cloud artifactid: spring-cloud-starter-aws-messaging - name: cloud contract bom: spring-cloud versionrange: 1.4.0.rc1 content: - name: cloud contract verifier id: cloud-contract-verifier description: test dependencies required for autogenerated tests groupid: org.springframework.cloud artifactid: spring-cloud-starter-contract-verifier scope: test starter: false - name: cloud contract stub runner id: cloud-contract-stub-runner description: stub runner for http/messaging based communication. allows creating wiremock stubs from restdocs tests groupid: org.springframework.cloud artifactid: spring-cloud-starter-contract-stub-runner scope: test starter: false - name: pivotal cloud foundry bom: spring-cloud-services versionrange: 1.3.0.release content: - name: config client (pcf) id: scs-config-client description: config client on pivotal cloud foundry groupid: io.pivotal.spring.cloud artifactid: spring-cloud-services-starter-config-client - name: service registry (pcf) id: scs-service-registry description: eureka service discovery on pivotal cloud foundry groupid: io.pivotal.spring.cloud artifactid: spring-cloud-services-starter-service-registry - name: circuit breaker (pcf) id: scs-circuit-breaker description: hystrix circuit breaker on pivotal cloud foundry groupid: io.pivotal.spring.cloud artifactid: spring-cloud-services-starter-circuit-breaker - name: azure bom: azure versionrange: "1.5.4.release" content: - name: azure support id: azure-support groupid: com.microsoft.azure artifactid: azure-spring-boot description: auto-configuration for azure services (service bus, storage, active directory, cosmos db, key vault and more) links: - rel: reference href: https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot description: reference doc - name: azure active directory id: azure-active-directory groupid: com.microsoft.azure artifactid: azure-active-directory-spring-boot-starter description: spring security integration with azure active directory for authentication links: - rel: guide href: https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-active-directory-spring-boot-sample description: using active directory - rel: reference href: https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-starters/azure-active-directory-spring-boot-starter description: reference doc - name: azure key vault id: azure-keyvault-secrets groupid: com.microsoft.azure artifactid: azure-keyvault-secrets-spring-boot-starter description: spring value annotation integration with azure key vault secrets links: - rel: guide href: https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-keyvault-secrets-spring-boot-sample description: using key vault - rel: reference href: https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-starters/azure-keyvault-secrets-spring-boot-starter description: reference doc - name: azure storage id: azure-storage groupid: com.microsoft.azure artifactid: azure-storage-spring-boot-starter description: azure storage service integration links: - rel: guide href: https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-samples/azure-storage-spring-boot-sample description: using azure storage - rel: reference href: https://github.com/microsoft/azure-spring-boot/tree/master/azure-spring-boot-starters/azure-storage-spring-boot-starter description: reference doc - name: spring cloud gcp bom: spring-cloud-gcp versionrange: 2.0.0.release content: - name: gcp support id: cloud-gcp description: support for google cloud platform services groupid: org.springframework.cloud artifactid: spring-cloud-gcp-starter links: - rel: reference href: https://docs.spring.io/spring-cloud-gcp/docs/${local.gcp.version}/reference/htmlsingle/ description: reference doc - rel: guide href: https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-samples description: samples - name: gcp messaging id: cloud-gcp-pubsub description: publish to and subcribe from google cloud pub/sub topics groupid: org.springframework.cloud artifactid: spring-cloud-gcp-starter-pubsub links: - rel: reference href: https://docs.spring.io/spring-cloud-gcp/docs/${local.gcp.version}/reference/htmlsingle/#_spring_cloud_gcp_for_pub_sub description: reference doc - rel: guide href: https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-samples/spring-cloud-gcp-pubsub-sample description: sample - name: gcp storage id: cloud-gcp-storage description: access google cloud storage objects groupid: org.springframework.cloud artifactid: spring-cloud-gcp-starter-storage links: - rel: reference href: https://docs.spring.io/spring-cloud-gcp/docs/${local.gcp.version}/reference/htmlsingle/#_spring_resources description: reference doc - rel: guide href: https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-samples/spring-cloud-gcp-storage-resource-sample description: sample - name: i/o content: - name: batch id: batch description: spring batch support weight: 100 links: - rel: guide href: https://spring.io/guides/gs/batch-processing/ description: creating a batch service - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#howto-batch-applications - name: mail id: mail description: send email using java mail and spring framework's javamailsender versionrange: 1.2.0.rc1 links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-email - name: apache camel id: camel versionrange: "1.4.0.release" mappings: - versionrange: "[1.4.0.release,1.5.0.release)" version: 2.18.5 - versionrange: "[1.5.0.release,2.0.0.m1)" version: 2.21.1 - versionrange: "2.0.0.m1" version: 2.22.0 description: integration using apache camel groupid: org.apache.camel artifactid: camel-spring-boot-starter links: - rel: guide href: http://camel.apache.org/spring-boot description: using apache camel with spring boot - name: ldap id: data-ldap description: ldap support, including spring-data-ldap versionrange: 1.5.0.rc1 links: - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#boot-features-ldap - name: quartz scheduler id: quartz versionrange: 2.0.0.m2 description: schedule jobs using quartz - name: spring shell id: spring-shell groupid: org.springframework.shell artifactid: spring-shell-starter description: build shell-based clients version: 2.0.0.release versionrange: 1.5.0.release repository: spring-milestones links: - rel: reference href: https://docs.spring.io/spring-shell/docs/2.0.0.m2/reference/htmlsingle/ - name: statemachine id: statemachine groupid: org.springframework.statemachine artifactid: spring-statemachine-starter description: build applications using state machine concepts versionrange: 2.0.0.rc1 bom: spring-statemachine links: - rel: reference href: https://docs.spring.io/spring-statemachine/docs/current-snapshot/reference/htmlsingle/ - rel: guide href: https://docs.spring.io/spring-statemachine/docs/current-snapshot/reference/htmlsingle/#developing-your-first-spring-statemachine-application description: developing your first spring statemachine application - name: ops content: - name: actuator id: actuator description: production ready features to help you monitor and manage your application links: - rel: guide href: https://spring.io/guides/gs/actuator-service/ description: building a restful web service with spring boot actuator - rel: reference href: http://docs.spring.io/spring-boot/docs/{bootversion}/reference/htmlsingle/#production-ready - name: spring boot admin (server) id: codecentric-spring-boot-admin-server groupid: de.codecentric artifactid: spring-boot-admin-starter-server description: an admin interface for spring boot applications versionrange: "1.5.9.release" bom: codecentric-spring-boot-admin links: - rel: reference href: http://codecentric.github.io/spring-boot-admin/current/#getting-started - name: spring boot admin (client) id: codecentric-spring-boot-admin-client groupid: de.codecentric artifactid: spring-boot-admin-starter-client description: register your application with a spring boot admin instance versionrange: "1.5.9.release" bom: codecentric-spring-boot-admin links: - rel: reference href: http://codecentric.github.io/spring-boot-admin/current/#getting-started - name: actuator docs id: actuator-docs description: api documentation for the actuator endpoints versionrange: "[1.3.0.release,2.0.0.m1)" groupid: org.springframework.boot artifactid: spring-boot-actuator-docs types: - name: maven project id: maven-project description: generate a maven based project archive sts-id: starter.zip tags: build: maven format: project default: true action: /starter.zip - name: maven pom id: maven-build description: generate a maven pom.xml sts-id: pom.xml tags: build: maven format: build default: false action: /pom.xml - name: gradle project id: gradle-project description: generate a gradle based project archive sts-id: gradle.zip tags: build: gradle format: project default: false action: /starter.zip - name: gradle config id: gradle-build description: generate a gradle build file sts-id: build.gradle tags: build: gradle format: build default: false action: /build.gradle packagings: - name: jar id: jar default: true - name: war id: war default: false javaversions: - id: 10 default: false - id: 1.8 name: 8 default: true languages: - name: java id: java default: true - name: kotlin id: kotlin default: false - name: groovy id: groovy default: false bootversions: - name : latest snapshot id: 1.2.4.build-snapshot default: false - name: 1.2.3 id: 1.2.3.release default: true - name: 1.1.12 id: 1.1.12.release default: false
(2)愉快地跑起来吧!
【参考文章】:
1.在阿里云上搭建spring initializr服务器
2.搭建自己的spring initializr服务器
上一篇: 详解android与HTML混合开发总结