From 348689c4a641216c9f614c0a55c5c7a1cc2a38e0 Mon Sep 17 00:00:00 2001 From: Gary Brown Date: Wed, 18 Oct 2017 14:21:10 +0100 Subject: [PATCH] Enable account mgr url to be set via system property aswell as environment --- .../src/main/java/com/example/ordermgr/OrderMgrController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple/ordermgr/src/main/java/com/example/ordermgr/OrderMgrController.java b/simple/ordermgr/src/main/java/com/example/ordermgr/OrderMgrController.java index e15e1c8..d80ed98 100644 --- a/simple/ordermgr/src/main/java/com/example/ordermgr/OrderMgrController.java +++ b/simple/ordermgr/src/main/java/com/example/ordermgr/OrderMgrController.java @@ -12,7 +12,7 @@ public class OrderMgrController { @Autowired private RestTemplate restTemplate; - private static String accountMgrUrl = System.getenv("ACCOUNTMGR_URL"); + private static String accountMgrUrl = System.getProperty("ACCOUNTMGR_URL", System.getenv("ACCOUNTMGR_URL")); @Autowired private io.opentracing.Tracer tracer;