领先一步
VMware 提供培训和认证,助您加速前进。
了解更多亲爱的 Spring 社区成员!
今天很高兴宣布 Spring Cloud 家族的一个新项目。它被称为 Spring Cloud GCP
,其目标是将大家熟知的 Spring 模式和 Spring Boot 约定带入您的应用程序中,以便使用 Google Cloud Platform 服务。
该项目目前版本为 1.0.0.M2
,可从 Spring Milestone Repository 获取
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-gcp-dependencies</artifactId>
<version>1.0.0.M2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
该项目始于 Google 和 Spring 团队合作的一次实验。到目前为止,我们获得了很好的经验,团队间的知识共享为我们带来了这个包含多个稳定模块且有 Google 团队积极贡献的项目。
该项目通过以下模块提供与 Google Cloud Platform 服务的集成和访问对象
提供了像 GcpProjectIdProvider
和 CredentialsProvider
这样的一流抽象及其支持类。提供属性并配置对 项目 ID 和 云身份验证 的访问。这是所有其他模块的传递依赖项。
该项目提供的组件的 Spring Boot 自动配置和 starter,或者只是对现有自动配置(例如 DataSourceAutoConfiguration
)的包装器和助手。
Google Cloud Pub/Sub 服务的知名 Template
和 Factory
Spring 模式实现。此外,该模块还包含围绕 PubSubTemplate
、PublisherFactory
和 SubscriberFactory
的 Spring Integration Channel Adapters 实现。
用于 Google Cloud Storage 资源解析的 org.springframework.core.io.ProtocolResolver
实现。此外还有用于读写 Blob
和 Bucket
资源的 Spring Integration Channel Adapters。
此模块支持将 Web 请求跟踪 ID 与相应的日志条目关联起来。这允许按请求对日志消息进行分组。
适用于 Google Cloud Stackdriver Trace 的 Spring Cloud Sleuth 组件实现。
适用于 Google Cloud Pub/Sub 服务的 Spring Cloud Stream Binder
实现。
有关这些及其他项目功能的更多信息,请参阅参考手册。另请注意项目中提供的大量示例。此外,我们还为您提供了使用 Google Cloud Pub/Sub 进行消息发送快速入门指南。
最后,不要错过Google 关于此项目的公告!
更多 Google Cloud Platform 服务支持和 Spring 组件实现即将推出!
欢迎通过适当的沟通渠道提供任何反馈、功能想法、批评、错误报告和问题。