Error Injecting FeignClient from another Project

后端 未结 3 961
刺人心
刺人心 2020-12-25 11:16

I am having trouble auto wiring a feign client from another project. It appears that the implementation of the feign client is not being generated and injected.

This

3条回答
  •  心在旅途
    2020-12-25 11:56

    You need to tell the Feign scanner where to locate the interfaces.

    You can use @EnableFeignClients(basePackages = {"my.external.feign.client.package", "my.local.package"}).

提交回复
热议问题