16 lines
972 B
Plaintext
16 lines
972 B
Plaintext
# 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()
|