How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Duplicate default methods inherited from two generated OpenAPI interfaces in Spring Boot [duplicate]

calendar_today May 26, 2026 person JEINER ANDY JOSUE PINEDA CORLE domain spring-boot

I am working with OpenAPI-generated interfaces in Spring Boot. My controller implements two generated interfaces: public class TreeController implements NodesApi, TreeApi { However, I get this compilation error: Duplicate default methods named getRequest with the parameters () and () are inherited from the types TreeApi and NodesApi Both interfaces were generated automatically from my OpenAPI specification. What I already tried: I checked both interfaces and they contain similar default methods.

open_in_new Read original post