Add openfeign-demo: OpenFeign vs @HttpExchange on Spring Boot 4.2.0 + Spring Cloud 2026.0.0
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
def73fa1c4
commit
7211b0fb80
@@ -0,0 +1,12 @@
|
||||
StudentClient.findById(99) [default decoder]
|
||||
exception : feign.FeignException$NotFound
|
||||
status : 404
|
||||
message : [404] during [GET] to [http://student-service/api/students/99] [StudentClient#findById(int)]: [{"detail":"No student with id 99","status":404,"title":"Not Found"}]
|
||||
|
||||
DecodedStudentClient.findById(99) [custom ErrorDecoder]
|
||||
exception : com.ankurm.feign.client.StudentNotFoundException
|
||||
message : 404 from DecodedStudentClient#findById(int) (http://localhost:18367/api/students/99)
|
||||
|
||||
DecodedStudentClient.findById(503) [custom decoder delegates non-404 to the default]
|
||||
exception : feign.FeignException$ServiceUnavailable
|
||||
status : 503
|
||||
Reference in New Issue
Block a user