feign的使用

引入pom <dependency> <groupId>org.springframework.org</groupId> <artifactId>spring-cloud-starter-feign</artifactId> </dependency> 在启动类上加入注解@EnableFeignClients 定义要调用的接口 @FeignClient(name="product") //
相关文章
相关标签/搜索