Feign客户端注入不进去

报错信息

A component required a bean of type 'com.heima.apis.vmUser.WmUserClient' that could not be found.

image.png

解决策略

在启动类上添加注解:@EnableFeignClients(basePackages = "com.heima.apis.vmUser")

image.png

上一篇 HttpClient 基本操作
下一篇 Failed to configure a DataSource: 'url' attribute is not specified and no embedd