Removed ExtendedModuleReference Object
[cps.git] / cps-rest / src / main / java / org / onap / cps / config / CpsConfig.java
index cca5fe7..4f4501a 100755 (executable)
@@ -1,6 +1,8 @@
-/*-\r
+/*\r
  * ============LICENSE_START=======================================================\r
- *  Copyright (C) 2020 Nordix Foundation. All rights reserved.\r
+ * Copyright (C) 2020 Nordix Foundation.\r
+ * Modifications Copyright (C) 2021 Pantheon.tech\r
+ * Modifications Copyright (C) 2021 Bell Canada.\r
  * ================================================================================\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
@@ -23,23 +25,12 @@ package org.onap.cps.config;
 import org.modelmapper.ModelMapper;\r
 import org.springframework.context.annotation.Bean;\r
 import org.springframework.context.annotation.Configuration;\r
-import springfox.documentation.builders.PathSelectors;\r
-import springfox.documentation.builders.RequestHandlerSelectors;\r
-import springfox.documentation.spi.DocumentationType;\r
-import springfox.documentation.spring.web.plugins.Docket;\r
+import org.springframework.retry.annotation.EnableRetry;\r
 \r
 @Configuration\r
+@EnableRetry\r
 public class CpsConfig {\r
 \r
-    /**\r
-     * Swagger configuration.\r
-     */\r
-    @Bean\r
-    public Docket api() {\r
-        return new Docket(DocumentationType.OAS_30).select().apis(RequestHandlerSelectors.any())\r
-            .paths(PathSelectors.any()).build();\r
-    }\r
-\r
     /**\r
      * ModelMapper configuration.\r
      */\r
@@ -47,4 +38,4 @@ public class CpsConfig {
     public ModelMapper modelMapper() {\r
         return new ModelMapper();\r
     }\r
-}
\ No newline at end of file
+}\r