How to read and display a CSV file in Java

preview_player
Показать описание
In this video, Marcus Hellberg shows you how to import a CSV file in Java and display it in a data grid. The tutorial covers loading CSV files from the classpath and uploading files through the browser. The tutorial uses Spring Boot, Maven, OpenCSV, and Vaadin.

0:00 - Introduction
0:27 - Project setup
1:14 - Importing the project in IntelliJ
2:26 - Running the application
4:06 - Adding a CSV file to the classpath
4:53 - Creating a data grid for displaying a CSV
6:39 - Reading a CSV from the classpath
7:56 - Reading a CSV with Open CSV and displaying it in a Vaadin Grid
13:43 - Uploading a CSV from the browser
15:43 - Outro

Рекомендации по теме
Комментарии
Автор

Impressive, thank you very much for this video. Long time ago I wanted to use Vaadin, now I realize that is way way way better than before, To hell Javascript family!.

gonzalooviedo
Автор

Thanks for the video, I really learned a lot. is there a way to go a step further and display the datasets and tables as graphs?

mouadtamim
Автор

I have imported a csv (300 000 rows) and I have created a button to randomly get 100 000 rows and print them. The csv takes seconds, but the 100 000 rows takes minutes, is there a way to speed it up?

kgeonly
Автор

Hey Marcus. I have tried with xlsx, and it doesn't work. Could you suggest some alternative. I'm just using POI to read excel. It's an existing project

Gauthiermbaya
Автор

Can we do this similar stuff with spring jpa to read the database tables?

RajeshSamson