增加本地和测试配置文件,便于本地调试

This commit is contained in:
2025-08-10 12:07:25 +08:00
parent 5424897e0c
commit eba37747e4
5 changed files with 10 additions and 2 deletions

1
Jenkinsfile vendored
View File

@ -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}

View File

@ -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")

View File

@ -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")

View 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

View File