修改feign访问路径变成配置文件中

This commit is contained in:
dxc
2021-02-22 17:25:16 +08:00
parent 19ed1dc717
commit a1158034c8
11 changed files with 121 additions and 140 deletions

View File

@ -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 {
/**
* 出始化竞拍项目信息

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**