Add rest-client-test module: @RestClientTest on Boot 4.1, Jackson 3 by default, and the RestClient-vs-RestTemplate root-URI matching trap (post #49)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
== A 404 response from MockRestServiceServer surfaces as HttpClientErrorException.NotFound ==
|
||||
|
||||
requestTo("http://hr-api.example.com/employees/99") -> 404 Not Found
|
||||
exception class = org.springframework.web.client.HttpClientErrorException$NotFound
|
||||
exception.getStatusCode() = 404 NOT_FOUND
|
||||
Reference in New Issue
Block a user