Error Injecting FeignClient from another Project

后端 未结 3 953
刺人心
刺人心 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 12:03

    My main class was in package "com.abc.myservicename" and my main class name was "myservicename.java". I was using @SpringBootApplication(scanBasePackages="com.abc") annotation in my main class.

    Changing the main class package name to "com.abc" has resolved the issue for me.

提交回复
热议问题