I have problem when i want to export my data to excel using spring boot web.
I am using Thymeleaf as template engine (auto configured by spring boot). But when I add XmlViewResolver in my additional configuration, my thymeleaf view resolved by XmlViewResolver which is absolutely will fail to resolve. I try fix that problem by create new class thant extends WebMvcConfigurerAdapter and reconfigure thymeleaf template resolver there. But my template cant be resolved, becase my template location not found. I put it in :
/resources/template/
Please help me.
With Spring Boot you don't need any extra configuration to generate an excel file.
Create a controller returning a ModelAndView with an AbstractExcelView:
Then build your AbstractExcelView like: