代码如下:
// pom.xml:
<dependency>
<groupId> org.apache.poi </ groupId>
<artifactId> poi </ artifactId>
<version> 3.17 </ version>
</ dependency>
<dependency>
<groupId> org.apache.poi < / groupId>
<artifactId> poi-ooxml </ artifactId>
<version> 3.17 </ version>
</ dependency>
//Controller:
//文件下载:导出excel表
@RequestMapping(value =“/ Daochu”)
public void exportExcel(HttpServletRequest request,HttpServletResponse response)抛出UnsupportedEncodingException {
//二,数据转成excel
request.setCharact