public void testSend(HttpServletResponseresponse) { try { CookieMa...
/** * 获取分钟的时间戳(13位) * * @return */ private static long getTimeMills() { ...
1、获取当前的时间 LocalDateTime nowDateTime = LocalDateTime.now(); DateTimeForma...
1、Calendar 转化 String //获取当前时间的具体情况,如年,月,日,week,date,分,秒等 Calendar cale...
@Test public void restTemplateTransferFile(){ final String filePat...
(1)List转换为JSONArray List list =new ArrayList(); JSONArray array= JSONArr...
在我们之前的代码中,我们是通过注入NewTopic类型的对象来创建 Kafka 的 topic 的。当我们的项目需要创建的 topic 逐渐变多...
SimpleDateFormat df= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date ...
带回调的生产者,通过回调可实现下面功能: 可知道消息 发送成功 还是 发送失败 当发送成功时,还能获取到发送的topic主题、partition...