Spring Boot CSV export — OpenCSV + Kotlin

1. Introduction

In one of the previous articles, we’ve learned how to upload CSV files in Spring Boot REST API. I’ve also mentioned, that conversion of CSV files is almost always an important part of any application.

In this guide, I will teach you how to implement Spring Boot CSV export functionality using OpenCSV library and Kotlin.