简体   繁体   中英

create csv file using Spring MVC

I Need to create a CSV file using JAVA.

Earlier I created excel file using HSSFBook from Apache POI, and from SPRING support I used AbstarctExcelView.buildExcelDocument() .

Similarly, want to ask is there any predefined class like HSSFBook from Apache POI (or from any vendor) to create a csv file . And their spring supports like AbstarctExcelView class .

Try Super CSV ,this has POJO support. You can easily create the csv using your pojos. I prefer this than Apache POI. https://super-csv.github.io/super-csv/examples_writing.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM