diff --git a/samples/sample-01/pom.xml b/samples/sample-01/pom.xml
index ad011217fc..dc424cf29e 100644
--- a/samples/sample-01/pom.xml
+++ b/samples/sample-01/pom.xml
@@ -5,7 +5,7 @@
com.example
kafka-sample-01
- 2.6.5
+ 3.0.2-SNAPSHOT
jar
kafka-sample-01
@@ -14,14 +14,14 @@
org.springframework.boot
spring-boot-starter-parent
- 2.4.3
+ 3.0.1-SNAPSHOT
UTF-8
UTF-8
- 1.8
+ 17
diff --git a/samples/sample-01/src/main/java/com/example/Application.java b/samples/sample-01/src/main/java/com/example/Application.java
index 6f894b4eae..ef5cf8c6fd 100644
--- a/samples/sample-01/src/main/java/com/example/Application.java
+++ b/samples/sample-01/src/main/java/com/example/Application.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018-2021 the original author or authors.
+ * Copyright 2018-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,8 +29,9 @@
import org.springframework.core.task.TaskExecutor;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.kafka.core.KafkaOperations;
+import org.springframework.kafka.listener.CommonErrorHandler;
import org.springframework.kafka.listener.DeadLetterPublishingRecoverer;
-import org.springframework.kafka.listener.SeekToCurrentErrorHandler;
+import org.springframework.kafka.listener.DefaultErrorHandler;
import org.springframework.kafka.support.converter.JsonMessageConverter;
import org.springframework.kafka.support.converter.RecordMessageConverter;
import org.springframework.util.backoff.FixedBackOff;
@@ -59,8 +60,8 @@ public static void main(String[] args) {
* Boot will autowire this into the container factory.
*/
@Bean
- public SeekToCurrentErrorHandler errorHandler(KafkaOperations