修改feign访问路径变成配置文件中
This commit is contained in:
@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
* @author daixc
|
||||
* @date 2020/11/25
|
||||
*/
|
||||
@FeignClient(value = ServiceNameConstants.AUCTION_SERVICE)
|
||||
@FeignClient(value = "${mconfig.service-name-auction}")
|
||||
public interface EbtpAuctionApi {
|
||||
/**
|
||||
* 出始化竞拍项目信息
|
||||
|
@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
* @author daixc
|
||||
* @date 2020/11/25
|
||||
*/
|
||||
@FeignClient(value = ServiceNameConstants.CALIBRATION_SERVICE)
|
||||
@FeignClient(value = "${mconfig.service-name-calibration}")
|
||||
public interface EbtpCalibrationApi {
|
||||
|
||||
/**
|
||||
|
@ -20,7 +20,7 @@ import java.util.List;
|
||||
* @author daixc
|
||||
* @date 2020/11/25
|
||||
*/
|
||||
@FeignClient(value = ServiceNameConstants.BID_SERVICE, fallbackFactory = EbtpMallBidClientFallback.class)
|
||||
@FeignClient(value = "${mconfig.service-name-bid}", fallbackFactory = EbtpMallBidClientFallback.class)
|
||||
public interface EbtpMallBidApi {
|
||||
|
||||
/**
|
||||
|
@ -18,7 +18,7 @@ import java.util.Map;
|
||||
* @author daixc
|
||||
* @date 2020/11/25
|
||||
*/
|
||||
@FeignClient(value = ServiceNameConstants.PROCESS_SERVICE,fallbackFactory = EbtpMallProcessClientFallback.class)
|
||||
@FeignClient(value = "${mconfig.service-name-process}",fallbackFactory = EbtpMallProcessClientFallback.class)
|
||||
public interface EbtpMallProcessApi {
|
||||
|
||||
/**
|
||||
|
@ -15,7 +15,7 @@ import java.util.List;
|
||||
* @author daixc
|
||||
* @date 2020/11/25
|
||||
*/
|
||||
@FeignClient(value = ServiceNameConstants.RESPS_SERVICE)
|
||||
@FeignClient(value = "${mconfig.service-name-resps}")
|
||||
public interface EbtpRespsApi {
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
* @author daixc
|
||||
* @date 2020/11/25
|
||||
*/
|
||||
@FeignClient(value = ServiceNameConstants.RSMS_SERVICE)
|
||||
@FeignClient(value = "${mconfig.service-name-rsms}")
|
||||
public interface EbtpRsmsApi {
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
* @author daixc
|
||||
* @date 2020/11/25
|
||||
*/
|
||||
@FeignClient(value = ServiceNameConstants.TENDER_SERVICE)
|
||||
@FeignClient(value = "${mconfig.service-name-tender}")
|
||||
public interface EbtpTenderApi {
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,6 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
* @date 2020/12/21
|
||||
*/
|
||||
@FeignClient(value = "${mconfig.service-name-resu}",fallbackFactory = MallResuClientFallback.class)
|
||||
//@FeignClient(name="mall-resu",url = "http://3g6422829c.wicp.vip:38002/api/mall-resu",fallbackFactory = MallResuClientFallback.class)
|
||||
public interface MallResuApi {
|
||||
|
||||
/**
|
||||
|
@ -12,8 +12,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
* @author daixc
|
||||
* @date 2020/12/21
|
||||
*/
|
||||
//@FeignClient(value = "${mconfig.service-price-query}")
|
||||
@FeignClient(name="biz-service-price-query",url = "http://172.16.15.75.vaiwan.com/",fallbackFactory = PriceQueryApiClientFallback.class)
|
||||
@FeignClient(value = "${mconfig.service-price-query}")
|
||||
//@FeignClient(name="biz-service-price-query",url = "http://172.16.15.75.vaiwan.com/",fallbackFactory = PriceQueryApiClientFallback.class)
|
||||
public interface PriceQueryApi {
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user