diff options
author | PatrikBuhr <patrik.buhr@est.tech> | 2020-12-02 15:04:57 +0100 |
---|---|---|
committer | PatrikBuhr <patrik.buhr@est.tech> | 2020-12-02 15:06:47 +0100 |
commit | acfcde2e7729939a9a9f9f8a085951585033c081 (patch) | |
tree | 879117e462f59b9e276a7483b2ec6b0ba3f72073 /a1-policy-management/src/main/java | |
parent | 7d8c25fedcdae8918a7c06088ac29abd41b60a06 (diff) |
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 <patrik.buhr@est.tech>
Diffstat (limited to 'a1-policy-management/src/main/java')
-rw-r--r-- | a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java | 4 |
1 files 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<String, RicConfig> ricConfigs = new HashMap<>(); |