In java code as followwhile true ConsumerRecordsString String records = consumerpollDurationofMillis100; for ConsumerRecordString String record records Systemou
The error is likely due to a missing import statement for the Duration class. To fix the error, add the following import statement at the beginning of the file:
import java.time.Duration;
This will allow the code to use the Duration class and resolve the error.
原文地址: http://www.cveoy.top/t/topic/dpgv 著作权归作者所有。请勿转载和采集!