@FeignClient(name="asYouLike", url="http://139.198.29.xxx:9986")
public interface TestService {
@RequestMapping("/hi")
String hi();
}
SpringCloud: FeignClient注解,使用url来进行http接口调用时,必须给注解加上name或value属性,否则报错
最新推荐文章于 2023-12-01 18:41:22 发布