From 64a72e2acc1901202354a1b29a29b8c2cefdd560 Mon Sep 17 00:00:00 2001 From: Julian Ladisch Date: Thu, 21 Dec 2023 18:45:43 +0100 Subject: [PATCH] hello-spring: Spring Boot 3.2, OpenAPI 7.1 for Quesnelia Upgrade dependencies for Quesnelia: Upgrade Spring Boot from 3.0 to 3.2. Upgrade folio-spring-base from 6.1.0 to 7.2.2. Upgrade OpenAPI from 6.2.1 to 7.1.0. --- hello-spring/pom.xml | 7 +++---- .../src/main/java/org/folio/hello/HelloController.java | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hello-spring/pom.xml b/hello-spring/pom.xml index ddeb1f2..82c2c1a 100644 --- a/hello-spring/pom.xml +++ b/hello-spring/pom.xml @@ -10,7 +10,7 @@ org.springframework.boot spring-boot-starter-parent - 3.0.6 + 3.2.0 @@ -29,8 +29,8 @@ 17 - 6.1.0 - 6.2.1 + 7.2.2 + 7.1.0 @@ -57,7 +57,6 @@ maven-resources-plugin - 3.2.0 filter-descriptor-inputs diff --git a/hello-spring/src/main/java/org/folio/hello/HelloController.java b/hello-spring/src/main/java/org/folio/hello/HelloController.java index 4010c7e..b593e6a 100644 --- a/hello-spring/src/main/java/org/folio/hello/HelloController.java +++ b/hello-spring/src/main/java/org/folio/hello/HelloController.java @@ -1,7 +1,7 @@ package org.folio.hello; import org.folio.hello.api.HelloApi; -import org.folio.hello.model.HelloGet200Response; +import org.folio.hello.model.HelloPost200Response; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RestController; @@ -22,8 +22,8 @@ public ResponseEntity helloGet() { /** {@inheritDoc} */ @Override - public ResponseEntity helloPost(Object body) { - HelloGet200Response response = new HelloGet200Response(); + public ResponseEntity helloPost(Object body) { + var response = new HelloPost200Response(); response.setGreeting(GREETING); response.setData(body);