增加本地和测试配置文件,便于本地调试
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -66,6 +66,7 @@ pipeline {
|
|||||||
--name \${CONTAINER_NAME} \
|
--name \${CONTAINER_NAME} \
|
||||||
--network sczx-net \
|
--network sczx-net \
|
||||||
-p 8088:8088 \
|
-p 8088:8088 \
|
||||||
|
-e SPRING_PROFILES_ACTIVE=test \
|
||||||
-e JAVA_OPTS="-Xms256m -Xmx512m -Duser.timezone=Asia/Shanghai" \
|
-e JAVA_OPTS="-Xms256m -Xmx512m -Duser.timezone=Asia/Shanghai" \
|
||||||
--restart always \
|
--restart always \
|
||||||
\${DOCKER_IMAGE}
|
\${DOCKER_IMAGE}
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import com.sczx.order.thirdpart.dto.req.CarQueryConditionReq;
|
|||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@FeignClient(name = "sczx-car")
|
@FeignClient(name = "sczx-car", url = "${sczx-car.ribbon.listOfServers:}")
|
||||||
public interface CarFacade {
|
public interface CarFacade {
|
||||||
|
|
||||||
@RequestMapping("/carModel/getCarModelByModelId")
|
@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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
@FeignClient(name = "sczx-store")
|
@FeignClient(name = "sczx-store", url = "${sczx-store.ribbon.listOfServers:}")
|
||||||
public interface StoreFacade {
|
public interface StoreFacade {
|
||||||
|
|
||||||
@RequestMapping("/pub/getStoreById")
|
@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