在Spring框架6.1中,引入了一个新的同步HTTP客户端RestClient
.另见:
https://github.com/spring-projects/spring-framework/issues/29552个
它的目标是取代现有的RestTemplate
.
在Spring Boot中,有一个可用于集成测试的TestRestTemplate
.另见:
然而,我找不到任何提到RestClient
的变体.使用RestClient
进行集成测试的推荐方式是什么?
在Spring框架6.1中,引入了一个新的同步HTTP客户端RestClient
.另见:
https://github.com/spring-projects/spring-framework/issues/29552个
它的目标是取代现有的RestTemplate
.
在Spring Boot中,有一个可用于集成测试的TestRestTemplate
.另见:
然而,我找不到任何提到RestClient
的变体.使用RestClient
进行集成测试的推荐方式是什么?
没有RestClient
的测试变种.This Spring Framework issue正在追踪RestClient
,相当于WebClient
‘S WebTestClient
.