diff --git a/.java-version b/.java-version
new file mode 100644
index 00000000..baf3ee04
--- /dev/null
+++ b/.java-version
@@ -0,0 +1 @@
+21.0.5
diff --git a/department-service/pom.xml b/department-service/pom.xml
index 51b40fff..f3a611bd 100644
--- a/department-service/pom.xml
+++ b/department-service/pom.xml
@@ -64,8 +64,8 @@
org.springdoc
- springdoc-openapi-starter-webmvc-api
- 2.8.3
+ springdoc-openapi-starter-webmvc-ui
+ ${spring-openai-mvc.version}
org.springframework.boot
diff --git a/employee-service/pom.xml b/employee-service/pom.xml
index e6d2d8b1..985c0653 100644
--- a/employee-service/pom.xml
+++ b/employee-service/pom.xml
@@ -56,8 +56,8 @@
org.springdoc
- springdoc-openapi-starter-webmvc-api
- 2.8.3
+ springdoc-openapi-starter-webmvc-ui
+ ${spring-openai-mvc.version}
org.springframework.boot
diff --git a/gateway-service/pom.xml b/gateway-service/pom.xml
index 286ba476..f18101ec 100644
--- a/gateway-service/pom.xml
+++ b/gateway-service/pom.xml
@@ -38,15 +38,10 @@
io.opentelemetry
opentelemetry-exporter-zipkin
-
- org.springdoc
- springdoc-openapi-starter-webflux-api
- 2.8.3
-
org.springdoc
springdoc-openapi-starter-webflux-ui
- 2.8.3
+ ${spring-openai-flux.version}
diff --git a/gateway-service/src/main/java/pl/piomin/services/gateway/GatewayApplication.java b/gateway-service/src/main/java/pl/piomin/services/gateway/GatewayApplication.java
index 2eeff7c6..43d95f26 100644
--- a/gateway-service/src/main/java/pl/piomin/services/gateway/GatewayApplication.java
+++ b/gateway-service/src/main/java/pl/piomin/services/gateway/GatewayApplication.java
@@ -2,8 +2,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.springdoc.core.properties.AbstractSwaggerUiConfigProperties;
-import org.springdoc.core.properties.SwaggerUiConfigParameters;
+import org.springdoc.core.properties.AbstractSwaggerUiConfigProperties.SwaggerUrl;
+import org.springdoc.core.properties.SwaggerUiConfigProperties;
+
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@@ -16,6 +17,9 @@
import java.util.List;
import java.util.Set;
+import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_URL;
+
+
@SpringBootApplication
@EnableDiscoveryClient
public class GatewayApplication {
@@ -28,16 +32,15 @@ public static void main(String[] args) {
@Bean
@Lazy(false)
- public Set apis(RouteDefinitionLocator locator,
- SwaggerUiConfigParameters swaggerUiConfigParameters) {
- Set urls = new HashSet<>();
+ public Set apis(RouteDefinitionLocator locator, SwaggerUiConfigProperties swaggerUiConfigProperties) {
+ Set urls = new HashSet<>();
List definitions = locator.getRouteDefinitions().collectList().block();
definitions.stream().filter(routeDefinition -> routeDefinition.getId().matches(".*-service")).forEach(routeDefinition -> {
String name = routeDefinition.getId().replaceAll("-service", "");
- AbstractSwaggerUiConfigProperties.SwaggerUrl swaggerUrl = new AbstractSwaggerUiConfigProperties.SwaggerUrl(name, "/" + name, null);
+ SwaggerUrl swaggerUrl = new SwaggerUrl(name, DEFAULT_API_DOCS_URL+"/" + name, null);
urls.add(swaggerUrl);
});
- swaggerUiConfigParameters.setUrls(urls);
+ swaggerUiConfigProperties.setUrls(urls);
return urls;
}
diff --git a/organization-service/pom.xml b/organization-service/pom.xml
index 7e1c32b1..0b584c1e 100644
--- a/organization-service/pom.xml
+++ b/organization-service/pom.xml
@@ -44,8 +44,8 @@
org.springdoc
- springdoc-openapi-starter-webmvc-api
- 2.8.3
+ springdoc-openapi-starter-webmvc-ui
+ ${spring-openai-mvc.version}
io.opentelemetry
diff --git a/pom.xml b/pom.xml
index 34333cce..5e9fbc1a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.3.5
+ 3.4.1
@@ -16,7 +16,9 @@
21
- 2023.0.5
+ 2024.0.0
+ 2.8.3
+ 2.8.3
piomin_sample-spring-microservices-new
piomin
https://sonarcloud.io