diff --git a/samples/client/petstore/java/resttemplate/pom.xml b/samples/client/petstore/java/resttemplate/pom.xml
index 58196a10475..ec4e37a93d5 100644
--- a/samples/client/petstore/java/resttemplate/pom.xml
+++ b/samples/client/petstore/java/resttemplate/pom.xml
@@ -250,7 +250,7 @@
UTF-8
1.5.17
4.3.9.RELEASE
- 2.10.1
+ 2.21.2
2.6.4
1.0.0
4.12