org.springframework.web.servlet.view.document

Class AbstractXlsxView

    • Constructor Detail

      • AbstractXlsxView

        public AbstractXlsxView()
        Default Constructor.

        Sets the content type of the view to "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet".

    • Method Detail

      • createWorkbook

        protected org.apache.poi.ss.usermodel.Workbook createWorkbook(java.util.Map<java.lang.String,java.lang.Object> model,
                                                                      HttpServletRequest request)
        This implementation creates an XSSFWorkbook for the XLSX format.
        Overrides:
        createWorkbook in class AbstractXlsView
        Parameters:
        model - the model Map
        request - current HTTP request (for taking the URL or headers into account)
        Returns:
        the new Workbook instance