From 63399a9560cd6f2bf6d3da6d2cd7dd39b1e5a934 Mon Sep 17 00:00:00 2001 From: Bipin kumar Date: Wed, 21 Feb 2024 19:33:44 +0530 Subject: [PATCH] JAVA-29166: Upgrade spring-caching to Spring Boot 3 (#15875) --- spring-boot-modules/spring-caching/pom.xml | 21 +++++++++++++++---- .../springdatacaching/model/Book.java | 4 ++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/spring-boot-modules/spring-caching/pom.xml b/spring-boot-modules/spring-caching/pom.xml index f3d9488b89..4a8d586f82 100644 --- a/spring-boot-modules/spring-caching/pom.xml +++ b/spring-boot-modules/spring-caching/pom.xml @@ -9,9 +9,10 @@ war - com.baeldung.spring-boot-modules - spring-boot-modules - 1.0.0-SNAPSHOT + com.baeldung + parent-boot-3 + 0.0.1-SNAPSHOT + ../../parent-boot-3 @@ -42,6 +43,7 @@ org.ehcache ehcache + jakarta org.springframework @@ -77,8 +79,19 @@ + + + + org.springframework.boot + spring-boot-maven-plugin + + true + + + + + - 3.5.2 3.1.8 diff --git a/spring-boot-modules/spring-caching/src/main/java/com/baeldung/springdatacaching/model/Book.java b/spring-boot-modules/spring-caching/src/main/java/com/baeldung/springdatacaching/model/Book.java index 02285e3894..40402f692e 100644 --- a/spring-boot-modules/spring-caching/src/main/java/com/baeldung/springdatacaching/model/Book.java +++ b/spring-boot-modules/spring-caching/src/main/java/com/baeldung/springdatacaching/model/Book.java @@ -4,8 +4,8 @@ import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.UUID;