增加本地和测试配置文件,便于本地调试
This commit is contained in:
@ -6,7 +6,7 @@ import com.sczx.order.thirdpart.dto.req.CarQueryConditionReq;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@FeignClient(name = "sczx-car")
|
||||
@FeignClient(name = "sczx-car", url = "${sczx-car.ribbon.listOfServers:}")
|
||||
public interface CarFacade {
|
||||
|
||||
@RequestMapping("/carModel/getCarModelByModelId")
|
||||
|
||||
@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
@FeignClient(name = "sczx-store")
|
||||
@FeignClient(name = "sczx-store", url = "${sczx-store.ribbon.listOfServers:}")
|
||||
public interface StoreFacade {
|
||||
|
||||
@RequestMapping("/pub/getStoreById")
|
||||
|
||||
7
src/main/resources/application-local.yml
Normal file
7
src/main/resources/application-local.yml
Normal file
@ -0,0 +1,7 @@
|
||||
sczx-store:
|
||||
ribbon:
|
||||
listOfServers: http://115.190.8.52:8082
|
||||
|
||||
sczx-car:
|
||||
ribbon:
|
||||
listOfServers: http://115.190.8.52:8083
|
||||
0
src/main/resources/application-test.yml
Normal file
0
src/main/resources/application-test.yml
Normal file
Reference in New Issue
Block a user