Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

WIP: Open Feign must support multiple interface inheritance

Đang mở
#413 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, spring
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu bằng việc xem xét chức năng OpenFeign Contract.BaseContract được đề cập trong issue và cách repository này sử dụng dependency OpenFeign. Kiểm tra hành vi kế thừa hiện tại và các điểm tích hợp. Được xem là hoàn tất khi Spring Cloud OpenFeign hỗ trợ kế thừa nhiều cấp và kế thừa nhiều interface mà không làm hỏng khả năng tương thích với kế thừa đơn, đồng thời đã xác định được bản cập nhật dependency.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement icebox

WIP Notice

I am currently working on this feature request across multiple repositories, so this this will be updated multiple times. Once finished, this notice will be removed. As soon as this notice gets removed, there will be a PR for spring-cloud-openfeign.

Problem

The current problem with OpenFeign is that one cannot inherit from multiple interfaces. And while the current contract,, i.e. single inheritance of annotated interfaces, should be supported in a backward compatitble way, I see no reason why one should prevent the user to inherit from multiple interfaces or marker interfaces even, and recursively so.

Describe the solution you'd like

Feign client interfaces should support multi-level, multiple inheritance.

Describe alternatives you've considered

There are no alternatives unless you come up with a better solution to the problem.

Additional context

I am currently working on a PR for the open feign project to incorporate such measures, meaning that the Contract.BaseContract functionality will be extended so that the IMO artificial restriction on inheritance will be removed altogether.

This will require no changes to spring-cloud except for updating the openfeign dependency.

Ngôn ngữ chính
Java
Star
1.3k
Fork
835
Merge trung bình
19 giờ 49 phút
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của spring-cloud/spring-cloud-openfeign

Tất cả issue của spring-cloud/spring-cloud-openfeign

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.