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.

In java code as followwhile true ConsumerRecordsString String records = consumerpollDurationofMillis100; for ConsumerRecordString String record records Systemou

原文地址: http://www.cveoy.top/t/topic/dpgv 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录