X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-rest%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fcps%2Fconfig%2FCpsConfig.java;h=4f4501afb2ff594d88265d7656fb1d4ea8f025a9;hb=3d02e9210625b75419089a3f5612f386c3b997ea;hp=cca5fe7d8d224692355cf811dcc83f0ce078f11f;hpb=11fd57a2a13c7c34e219c6be24793871bee58ca3;p=cps.git 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 cca5fe7d8..4f4501afb 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,8 @@ -/*- +/* * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix Foundation. All rights reserved. + * Copyright (C) 2020 Nordix Foundation. + * Modifications Copyright (C) 2021 Pantheon.tech + * 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,23 +25,12 @@ package org.onap.cps.config; import org.modelmapper.ModelMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import springfox.documentation.builders.PathSelectors; -import springfox.documentation.builders.RequestHandlerSelectors; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spring.web.plugins.Docket; +import org.springframework.retry.annotation.EnableRetry; @Configuration +@EnableRetry public class CpsConfig { - /** - * Swagger configuration. - */ - @Bean - public Docket api() { - return new Docket(DocumentationType.OAS_30).select().apis(RequestHandlerSelectors.any()) - .paths(PathSelectors.any()).build(); - } - /** * ModelMapper configuration. */ @@ -47,4 +38,4 @@ public class CpsConfig { public ModelMapper modelMapper() { return new ModelMapper(); } -} \ No newline at end of file +}