@RequiresPermissions("addresslist:addressList:import")
    @RequestMapping(value = "import", method=RequestMethod.POST)
    public String importFile(MultipartFile file, RedirectAttributes redirectAttributes) {
try {
int successNum = 0;
int failureNum = 0;
StringBuilder failureMsg = new StringBuilder();
ImportExcel ei = new ImportExcel(file, 1, 0);
HSSFWorkbook wx = new HSSFWorkbook(file.getInputStream());
XSSFWorkbook wb = new XSSFWorkbook(file.getInputStream());
XSSFSheet sheet=wb.getSheetAt(0);jsp页面 <table:importExcel url="${ctx}/addresslist/import"></table:importExcel><!-- 导入按钮 -->