英文原文:https://cloud.spring.io/spring-cloud-cloudfoundry/
目录
Spring Cloud Cloud Foundry
特性
快速开始
发布版本
示例项目
Spring Cloud Cloud Foundry
Spring Cloud for Cloudfoundry可以轻松地在Cloud Foundry(平台即服务)中运行Spring Cloud应用程序。 Cloud Foundry具有“服务”的概念,即“绑定”到应用程序的中间件,实质上为其提供包含凭据的环境变量(例如,用于服务的位置和用户名)。
?
特性
spring-cloud-cloudfoundry-web项目为Cloud Foundry中的一些增强的Web应用功能提供基本支持:自动绑定到单点登录服务,并可选择为发现启用粘性路由。
spring-cloud-cloudfoundry-discovery项目提供Spring Cloud Commons DiscoveryClient的实现,因此您可以@EnableDiscoveryClient并提供您的凭据spring.cloud.cloudfoundry.discovery。[email,password]然后您可以直接使用DiscoveryClient或通过 一个LoadBalancerClient(如果你没有连接到Pivotal Web Services,也是* .url)。
???? 注意:如果您正在寻找绑定到服务的方法,那么这是错误的库。 请查看Spring Cloud Connectors。
?
快速开始
在项目中使用spring-cloud-cloudfoundry的推荐方法是使用依赖关系管理系统 – 下面的代码段可以复制并粘贴到您的构建中。 需要帮忙? 请参阅我们的Maven和Gradle构建入门指南。
Maven
<dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-cloudfoundry-web</artifactId> <version>2.1.0.RC2</version> </dependency></dependencies><repositories> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/libs-milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </repository></repositories>
Gradle
dependencies { compile ‘org.springframework.cloud:spring-cloud-cloudfoundry-web:2.1.0.RC2’}repositories { maven { url ‘https://repo.spring.io/libs-milestone’ }}
?
发布版本
Spring Cloud for Cloud Foundry
Release
Documentation
2.1.0 RC2
Reference API
2.0.2
Reference API
2.0.1
Reference API
1.1.3
Reference API
1.1.2
Reference API
1.0.便宜香港vps2
Reference API
1.0.1
Reference API
示例项目
Cloud Foundry Sample
?