Skip to content

Commit 3f97f84

Browse files
committed
Migrate server to Spring Boot 4
1 parent 0413576 commit 3f97f84

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

server-spring/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.boot</groupId>
99
<artifactId>spring-boot-starter-parent</artifactId>
10-
<version>3.5.7</version>
10+
<version>4.0.0</version>
1111
<!--relative path empty as this is a submodule, but spring starter needs to be the parent-->
1212
<relativePath />
1313
</parent>
@@ -27,7 +27,7 @@
2727
<dependencies>
2828
<dependency>
2929
<groupId>org.springframework.boot</groupId>
30-
<artifactId>spring-boot-starter-web</artifactId>
30+
<artifactId>spring-boot-starter-webmvc</artifactId>
3131
</dependency>
3232
<dependency>
3333
<groupId>org.springframework.data</groupId>
@@ -79,7 +79,7 @@
7979

8080
<dependency>
8181
<groupId>org.springframework.boot</groupId>
82-
<artifactId>spring-boot-starter-test</artifactId>
82+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
8383
</dependency>
8484
<dependency>
8585
<groupId>org.junit.jupiter</groupId>
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#server.port=8081
2-
spring.jackson.date-format=giis.samples.openapi.invoker.RFC3339DateFormat
3-
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
2+
# spring boot v4 uses jackson v3, set compatibility with jackson v2
3+
spring.jackson.use-jackson2-defaults=true
4+
spring.jackson2.date-format=giis.tdrules.openapi.invoker.RFC3339DateFormat
5+
spring.jackson2.serialization.WRITE_DATES_AS_TIMESTAMPS=false

server-spring/src/test/java/giis/samples/openapi/test/springserver/TestPetApiServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.slf4j.Logger;
1515
import org.slf4j.LoggerFactory;
1616
import org.springframework.beans.factory.annotation.Autowired;
17-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
17+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
1818
import org.springframework.boot.test.context.SpringBootTest;
1919
import org.springframework.http.MediaType;
2020
import org.springframework.test.context.junit.jupiter.SpringExtension;

0 commit comments

Comments
 (0)