01.feign及其client helloworld使用

2023-01-27  本文已影响0人  当当一丢丢

使用步骤

server端定义接口

//
@SpringBootApplication
@ComponentScan({"com.ppdai.dockeryard"})
@MapperScan("com.ppdai.dockeryard.core.mapper")
@EnableFeignClients(basePackages = {"com.ppdai.atlas.api","com.ppdai.atlas"})
public class ProxyApplication { }


调用该接口方如何使用

    @Autowired
    AppControllerApiClient appControllerApiClient;
上一篇下一篇

猜你喜欢

热点阅读