Writing Excel file jdbctemplate
<p>This may seem a trivial question but I am using jdbctemplate and need to export data to an excel file. Not sure if I can use the CSVWriter since jdbctemplate does not have a method to return a resultset and I need the headers. I do not want to hardcode the headers in the code either as they will change. I just want to dump the data as is from the db (along with headers). </p>