Spring Cloud Task 2.0.0.M3 现已发布
多语言世界中的 Spring Cloud Contract
本文简要回顾了什么是契约测试,Spring Cloud Contract 如何实现它,以及如何在多语言世界中使用 Spring Cloud Contract。
什么是契约测试
为了提高我们系统行为正确的确定性,我们编写了不同类型的测试。根据测试金字塔,主要的测试类型是单元测试、集成测试和 UI 测试。测试越复杂,所需的时间和精力越多,它们也变得越脆弱。
在分布式系统中,最常见的问题之一是测试应用程序之间的集成。假设您的服务向另一个应用程序发送 REST 请求。使用 Spring Boot 时,您可以编写一个 @SpringBootTest
来测试该行为。您设置 Spring 上下文,准备要发送的请求...然后将其发送到哪里?您还没有启动另一个应用程序,所以会收到 Connection Refused
...
Spring Cloud Finchley M6 已发布
我代表社区荣幸地宣布 Spring Cloud Finchley 发行版的 Milestone 6 (M6) 今天可用。该版本可在 Spring Milestone 仓库中找到。您可以查看 Finchley 的发布说明以获取更多信息。
Finchley 发行版中的显著变化
Finchley.M6 与 Spring Boot RC1 兼容。已进行了许多更新以实现与 RC1 的兼容性。
Spring Cloud Sleuth
Spring Cloud Sleuth 的内部已重写为使用 Brave。更多信息请参见迁移指南。
Spring Cloud Gateway
网关的性能显著提升。Hystrix 过滤器已添加回退支持。Java Route DSL 也有更新。要添加过滤器,请使用新的 filters()
…
Spring Integration for AWS 2.0.0.M1 和 Spring Cloud Stream Kinesis Binder 1.0.0.M1
亲爱的 Spring 社区!
我很高兴宣布 Amazon Web Services 的两个 Spring Milestone 版本:Spring Integration for AWS 2.0.0.M1
和 Spring Cloud Stream Binder for AWS Kinesis 1.0.0.M1
。
这两个里程碑版本都在 Spring Milestone 仓库中提供,并且可以作为 maven 依赖项使用。
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-aws</artifactId>
<version>2.0.0.M1</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kinesis…
本周 Spring 要闻 - 2018 年 2 月 13 日
嗨,Spring 爱好者们!欢迎来到新一期的《本周 Spring 要闻》!本周我一直在德国慕尼黑和法兰克福以及明尼苏达州明尼阿波利斯,本周剩余时间看来我要待在纽约市和旧金山。
我们有很多内容要介绍,事不宜迟,让我们开始吧。
- Spring Cloud Contract lead Marcin Grzejszczak 刚刚发布了一篇关于在多语言世界中使用 Spring Cloud Contract 的精彩文章。
- Spring Cloud Stream lead Oleg Zhurakousky 刚刚宣布了 Spring Cloud Stream Elmhurst M4 / 2.0.0.M4。
- Spring Integration 传奇人物 Artem Bilan 刚刚宣布了 Spring Integration for AWS 2.0.0.M1 和 Spring Cloud Stream Kinesis Binder 1.0.0.M1。此版本着重展示了我们如何努力为您提供最有价值的体验,包括在此版本中适配 AWS…
Spring Session 1.3.2 发布
此文章由 Vedran Pavić 撰写
我代表社区荣幸地宣布 Spring Session 1.3.2.RELEASE 发布。此维护版本包含大量错误修复和改进。
一些亮点包括
-
#951 -
SessionRepositoryFilter#changeSessionId
不会复制旧会话的maxInactiveInterval
到新会话 -
#983 - 优化
HazelcastSessionRepository
写操作 -
#984 - 改进会话事件处理
您可以在更新日志中找到此版本的完整详情。
请提供反馈
如果您对此版本有反馈,我鼓励您通过 StackOverflow、GitHub Issues 或评论区与我们联系。您也可以 @rob_winch、@joe_grandja 或 @vedran_pavic。
Spring Web Flow 2.5 RC1 可用
Spring Web Flow 2.5 的第一个也是唯一一个计划的候选版本现已从 Spring Milestones 仓库中提供。示例仓库已更新以使用它。
此版本提供了到 Spring Framework 5 的升级路径,同时要求最低版本为 Java 8、Servlet 3.1、Hibernate 5、Tiles 3 和 JSF 2.2。
在此版本中,“spring-js” 已与 “spring-webflow” 合并,因此不再有独立的 “spring-js” 模块。因此,一些配置类的包名已更改。“spring-js-resources” 模块仍然可用,但作为可选模块必须…
Spring Cloud Edgware.SR2 发布
我代表社区荣幸地宣布 Spring Cloud Edgware 发行版的服务发布 2 (SR2) 今天可用。该版本可在 Maven Central 中找到。您可以查看 Edgware 的发布说明以获取更多信息。
Edgware 发行版中的显著变化
Spring Cloud Commons
Spring Cloud Contract
Spring Cloud Config
Spring Cloud Consul
Spring Cloud Netflix
Spring Cloud Bus
Spring Cloud Sleuth
以下模块已更新,作为 Edgware.SR2 的一部分
…模块 | 版本 |
---|---|
Spring Cloud Commons | 1.3.2.RELEASE |
Spring Cloud Contract | 1.2.3.RELEASE |
Spring Cloud Config | 1.4.2.RELEASE |
Spring Cloud Build | 1.3.8.RELEASE |
Spring Boot | 1.5.10.RELEASE |
Spring Cloud Consul | 1.3.2.RELEASE |
Spring Cloud Netflix | 1.4.3.RELEASE |
Spring Cloud Bus | 1.3.3.RELEASE |
Spring Cloud Sleuth | 1.3.2.RELEASE |
Spring Cloud for Google Cloud Platform 1.0 Milestone 2 可用
亲爱的 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…