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:
Ankur
2026-11-26 00:46:05 +05:30
co-authored by Claude Sonnet 5.5
parent def73fa1c4
commit 7211b0fb80
43 changed files with 927 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
findAll() -> [Student[id=1, name=Asha, branch=CS], Student[id=2, name=Ravi, branch=IT], Student[id=3, name=Meera, branch=EXTC]]
findById(2) -> Student[id=2, name=Student-2, branch=CS]
create(Kiran, ME) -> Student[id=100, name=Kiran, branch=ME]
Feign's own log (logger-level: basic):
[StudentClient#findAll] ---> GET http://student-service/api/students HTTP/1.1
[StudentClient#findAll] <--- HTTP/1.1 200 (138ms)
[StudentClient#findById] ---> GET http://student-service/api/students/2 HTTP/1.1
[StudentClient#findById] <--- HTTP/1.1 200 (7ms)
[StudentClient#create] ---> POST http://student-service/api/students HTTP/1.1
[StudentClient#create] <--- HTTP/1.1 201 (6ms)