Export of excel in java - based on the jalor5 framework

Reference the tool class in the framework in the class that needs to be exported, and use annotations to create objects

Call the following methods in the corresponding methods of the implementation class, where postVO is the input parameter used for query results. The string corresponds to the id of the xml

Next, you only need to configure the isd.ppm.whole.getRegionDistributionDuExport file, the file name is isd.ppm.whole.getRegionDistributionDuExport.excelExport.xml, and the suffix needs to be excelExport.xml

The consumerBean in xml corresponds to @Named of the implementation class. The implementation class implements the input parameter of the front desk (the input parameter class must inherit/implement Serializable), which is arg0 in the following class, and the query result is a List result set, and the result set list<*vo >, *vo is the class of voClassName in xml.

Summary: xml is the most critical configuration and the link. As long as you figure out the corresponding configuration location relationship, it's ok.

Guess you like

Origin blog.csdn.net/Spring_possible/article/details/89957194