diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml b/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml
index 4cc4720154d0..9783a666d282 100644
--- a/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml
+++ b/spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml
@@ -557,7 +557,7 @@
org.glassfish.jersey.ext
- jersey-spring4
+ jersey-spring5
test
diff --git a/spring-boot-project/spring-boot-actuator/pom.xml b/spring-boot-project/spring-boot-actuator/pom.xml
index d23566a73f09..e667322d9279 100644
--- a/spring-boot-project/spring-boot-actuator/pom.xml
+++ b/spring-boot-project/spring-boot-actuator/pom.xml
@@ -367,7 +367,7 @@
org.glassfish.jersey.ext
- jersey-spring4
+ jersey-spring5
test
diff --git a/spring-boot-project/spring-boot-autoconfigure/pom.xml b/spring-boot-project/spring-boot-autoconfigure/pom.xml
index 0c54068ba16e..1237d4dd153a 100755
--- a/spring-boot-project/spring-boot-autoconfigure/pom.xml
+++ b/spring-boot-project/spring-boot-autoconfigure/pom.xml
@@ -186,7 +186,7 @@
org.glassfish.jersey.ext
- jersey-spring4
+ jersey-spring5
true
diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml
index f1b25ade908f..a05eaa3dd1ad 100644
--- a/spring-boot-project/spring-boot-dependencies/pom.xml
+++ b/spring-boot-project/spring-boot-dependencies/pom.xml
@@ -2254,6 +2254,12 @@
import
pom
+
+
+ org.glassfish.jersey.ext
+ jersey-spring5
+ ${jersey.version}
+
org.hamcrest
hamcrest
diff --git a/spring-boot-project/spring-boot-docs/pom.xml b/spring-boot-project/spring-boot-docs/pom.xml
index de23c7c43141..2001a7b6c913 100644
--- a/spring-boot-project/spring-boot-docs/pom.xml
+++ b/spring-boot-project/spring-boot-docs/pom.xml
@@ -669,7 +669,7 @@
org.glassfish.jersey.ext
- jersey-spring4
+ jersey-spring5
true
diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-jersey/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-jersey/pom.xml
index 6295d218504c..5c63beb67a44 100644
--- a/spring-boot-project/spring-boot-starters/spring-boot-starter-jersey/pom.xml
+++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-jersey/pom.xml
@@ -93,7 +93,7 @@
org.glassfish.jersey.ext
- jersey-spring4
+ jersey-spring5
org.jvnet