New posts

This commit is contained in:
2026-11-06 21:44:06 +05:30
parent dc13293046
commit 8da3374155
51 changed files with 2099 additions and 0 deletions
@@ -0,0 +1,15 @@
# A. the keys the article's first version used (spring.http.client.service.group.<g>.base-url)
findAll() -> java.lang.IllegalArgumentException: URI with undefined scheme
# B. the keys Spring Boot 4.1.2 binds (spring.http.serviceclient.<g>.base-url)
findAll() -> OK -> 3
# C. no base URL at all
findAll() -> java.lang.IllegalArgumentException: URI with undefined scheme
# D. a return type that does not match the JSON (array decoded as a single Post)
list() -> org.springframework.web.client.RestClientException: Error while extracting response for type [com.ankurm.hsc.model.Post] and content type [application/json]
root cause class: tools.jackson.databind.exc.MismatchedInputException
# E. @GetMapping on a client interface instead of @GetExchange
createClient(UsesRequestMapping.class).list() -> java.lang.IllegalStateException: Unexpected method invocation: public abstract java.lang.String com.ankurm.hsc.Step02PropertiesAndPitfallsTest$UsesRequestMapping.list()