No Feign Client for loadBalancing defined. Did you forget to include spring-

问题:原因

从项目上复制了

FileServiceClient

No Feign Client for loadBalancing defined. Did you forget to include spring-_第1张图片

先把feign 模块引进用feign的模块

No Feign Client for loadBalancing defined. Did you forget to include spring-_第2张图片

然后注入

No Feign Client for loadBalancing defined. Did you forget to include spring-_第3张图片

 启动报错 No Feign Client for loadBalancing defined. Did you forget to include spring-

解决办法

No Feign Client for loadBalancing defined. Did you forget to include spring-_第4张图片

 原因可百度

你可能感兴趣的:(spring,java,后端)