create-excel using list of objects
Model class- User
output excel sheet
null pointer exception handling:
bash row.createCell(0).setCellValue(tutorial.getId()==null?"":user.getId());
add this dependancy:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</version>
</dependency>