From acfcde2e7729939a9a9f9f8a085951585033c081 Mon Sep 17 00:00:00 2001 From: PatrikBuhr Date: Wed, 2 Dec 2020 15:04:57 +0100 Subject: Bugfix, adding default values for http proxy if missing If the httpproxy parameters is missing in the application.yaml, the application will run and no proxies will be used. Previously it did not start. Change-Id: I5f532a0f106255cc3e30defc8191f674d8bf3731 Issue-ID: CCSDK-2966 Signed-off-by: PatrikBuhr --- .../a1policymanagementservice/configuration/ApplicationConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java index d6dc3975..ab3e89ef 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java @@ -65,10 +65,10 @@ public class ApplicationConfig { @Value("${app.webclient.trust-store}") private String sslTrustStore = ""; - @Value("${app.webclient.http.proxy-host}") + @Value("${app.webclient.http.proxy-host:\"\"}") private String httpProxyHost = ""; - @Value("${app.webclient.http.proxy-port}") + @Value("${app.webclient.http.proxy-port:0}") private int httpProxyPort = 0; private Map ricConfigs = new HashMap<>(); -- cgit 1.2.3-korg