aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLee, Tian (tl5884) <TianL@amdocs.com>2019-07-30 16:45:43 +0100
committerLee, Tian (tl5884) <TianL@amdocs.com>2019-07-30 16:58:50 +0100
commit20555f4c8fc76c5ebba78324788ec91af41aeaea (patch)
tree8b19f53ad2f8d52775515f22ff5eae671e00de83 /src
parent280095897dc60a83106df78bb513cfb4241ae800 (diff)
Upgrade Spring Boot from 1.5.x to 2.1.6
Changes required to upgrade Babel to latest Spring Boot version. This changelist is dependent on https://gerrit.onap.org/r/c/aai/oom/+/92293 Issue-ID: AAI-2540 Change-Id: I804b80506514d274249fa4eae36392793cb737fb Signed-off-by: Lee, Tian (tl5884) <TianL@amdocs.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/aai/auth/AAIMicroServiceAuthCore.java2
-rw-r--r--src/main/java/org/onap/aai/babel/BabelApplication.java2
-rw-r--r--src/main/resources/application.properties2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/onap/aai/auth/AAIMicroServiceAuthCore.java b/src/main/java/org/onap/aai/auth/AAIMicroServiceAuthCore.java
index eae1a24..f1b3549 100644
--- a/src/main/java/org/onap/aai/auth/AAIMicroServiceAuthCore.java
+++ b/src/main/java/org/onap/aai/auth/AAIMicroServiceAuthCore.java
@@ -165,7 +165,7 @@ public class AAIMicroServiceAuthCore {
}
} catch (FileNotFoundException e) {
throw new AAIAuthException("Auth policy file could not be found", e);
- } catch (JsonProcessingException e) {
+ } catch (JsonProcessingException | NullPointerException e) {
throw new AAIAuthException("Error processing Auth policy file ", e);
} catch (IOException e) {
throw new AAIAuthException("Error reading Auth policy file", e);
diff --git a/src/main/java/org/onap/aai/babel/BabelApplication.java b/src/main/java/org/onap/aai/babel/BabelApplication.java
index e524e6e..b3eaee4 100644
--- a/src/main/java/org/onap/aai/babel/BabelApplication.java
+++ b/src/main/java/org/onap/aai/babel/BabelApplication.java
@@ -26,7 +26,7 @@ import org.eclipse.jetty.util.security.Password;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
-import org.springframework.boot.web.support.SpringBootServletInitializer;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 187826a..9a7d699 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -2,7 +2,7 @@ server.port=9516
server.ssl.key-store=${CONFIG_HOME}/auth/tomcat_keystore
server.ssl.client-auth=need
-server.contextPath=/services/babel-service
+server.servlet.context-path=/services/babel-service
logging.config=${CONFIG_HOME}/logback.xml