如何在运行时更改spring-boot-feign地址

时间:2017-04-27 07:24:50

标签: spring-boot netflix-feign spring-cloud-feign

我在我的应用程序中使用以下接口定义:

@FeignClient(name = "inventory-manage", 
             configuration = EtermTestRequestShoppingConfiguration.class,
             url="http://xxxx")
public interface EtermTestRequestShopping {

  @RequestMapping(method = RequestMethod.POST, 
                    value = "/inventory/manager/shopping")
  @ResponseBody
  Single<String> shoping(@RequestBody ShoppingSearchReq shoppingSearchReq);
}

如何在运行时更改网址值?

0 个答案:

没有答案