aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest
diff options
context:
space:
mode:
authorNiamh Core <niamh.core@est.tech>2021-07-12 15:18:57 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-12 15:18:57 +0000
commitb69ec9851b4af28ed4f8f21b01962561bfa1ec8b (patch)
tree917edc848f7e080d3be92f11b906e547f1659aa2 /cps-rest
parent7b5674c679796d5a568eeaeb63776c87468f3c9d (diff)
parent9be188dd7a5d0507a94e2ce321d3f3390d195a4e (diff)
Merge "Support concurrent requests to create schema sets"
Diffstat (limited to 'cps-rest')
-rwxr-xr-xcps-rest/pom.xml8
-rwxr-xr-xcps-rest/src/main/java/org/onap/cps/config/CpsConfig.java5
2 files changed, 12 insertions, 1 deletions
diff --git a/cps-rest/pom.xml b/cps-rest/pom.xml
index 22c1b7960b..4b42656e89 100755
--- a/cps-rest/pom.xml
+++ b/cps-rest/pom.xml
@@ -55,6 +55,14 @@
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
+ <groupId>org.springframework.retry</groupId>
+ <artifactId>spring-retry</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-aspects</artifactId>
+ </dependency>
+ <dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
diff --git a/cps-rest/src/main/java/org/onap/cps/config/CpsConfig.java b/cps-rest/src/main/java/org/onap/cps/config/CpsConfig.java
index 419a218930..35a1bedfdc 100755
--- a/cps-rest/src/main/java/org/onap/cps/config/CpsConfig.java
+++ b/cps-rest/src/main/java/org/onap/cps/config/CpsConfig.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2020 Nordix Foundation. All rights reserved.
+ * Copyright (C) 2020 Nordix Foundation. All rights reserved.
+ * Modifications Copyright (C) 2021 Bell Canada.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,12 +24,14 @@ package org.onap.cps.config;
import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
+import org.springframework.retry.annotation.EnableRetry;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
@Configuration
+@EnableRetry
public class CpsConfig {
/**