# 04-step2-diff: recipe org.openrewrite.java.spring.boot4.UpgradeSpringBoot_4_0 applied on top of step 1 (32 s)
diff -ru -x target step1/pom.xml step2/pom.xml
--- step1/pom.xml
+++ step2/pom.xml
@@ -4,7 +4,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.5.16
+ 4.0.8
com.ankurm
@@ -18,14 +18,23 @@
jakarta.servlet
jakarta.servlet-api
- org.springframework.bootspring-boot-starter-web
+ org.springframework.bootspring-boot-starter-webmvc
org.springframework.bootspring-boot-starter-data-jpa
+
+ org.springframework.boot
+ spring-boot-starter-restclient
+
org.springframework.bootspring-boot-starter-validation
org.springframework.bootspring-boot-starter-security
org.springframework.bootspring-boot-starter-actuator
com.h2databaseh2runtime
org.springframework.bootspring-boot-starter-testtest
- org.springframework.securityspring-security-testtest
+
+ org.springframework.boot
+ spring-boot-starter-webmvc-test
+ test
+
+ org.springframework.bootspring-boot-starter-security-testtest
diff -ru -x target step1/src/main/resources/application.properties step2/src/main/resources/application.properties
--- step1/src/main/resources/application.properties
+++ step2/src/main/resources/application.properties
@@ -1,6 +1,6 @@
-spring.redis.host=localhost
-spring.redis.port=6379
-management.metrics.export.prometheus.enabled=true
+spring.data.redis.host=localhost
+spring.data.redis.port=6379
+management.prometheus.metrics.export.enabled=true
spring.jpa.hibernate.ddl-auto=create-drop
-server.max-http-header-size=16KB
+server.max-http-request-header-size=16KB
spring.jpa.properties.jakarta.persistence.validation.mode=none
diff -ru -x target step1/src/test/java/com/ankurm/legacy/CustomerControllerTest.java step2/src/test/java/com/ankurm/legacy/CustomerControllerTest.java
--- step1/src/test/java/com/ankurm/legacy/CustomerControllerTest.java
+++ step2/src/test/java/com/ankurm/legacy/CustomerControllerTest.java
@@ -6,7 +6,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
+import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.web.servlet.MockMvc;