Sharing Feign API Contracts via a Common Module in Spring Cloud
·7 mins
Put the Feign interface, VOs, and DTOs in one shared module: the server implements the interface as its controller, the consumer just injects and calls it — removing the legacy duplication where the interface and its client drift apart.