Answers for "How to send data in kafka header in Spring boot application"

0

read csv in java in spring

//head auto detection
Reader in = new FileReader("path/to/file.csv");
Iterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in);
for (CSVRecord record : records) {
    String id = record.get("ID");
    String customerNo = record.get("CustomerNo");
    String name = record.get("Name");
}
//add dependemcy too
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-csv</artifactId>
    <version>1.8</version>
</dependency>
Posted by: Guest on April-28-2020
-1

send data with url in php

// Send the variables myNumber=1 and myFruit="orange" to the new PHP page...
<a href="page2.php?myNumber=1&myFruit=orange">Next page</a>
Posted by: Guest on January-31-2020

Code answers related to "How to send data in kafka header in Spring boot application"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language