Excel导入导出(ant design+spring boot)

一、运用ant design的upload组件,将Excel中的数据批量导入到数据库 upload组件的 action 日后台传递的是 multipartfile 类型,而使用jxl/poi方式读取文件要求文件类型为 file ,所以存在 multipartfile 转换 file 的过程。 转换方法为:将multipartfile转换为输入流( 调用getInputStream() ),而后直接
相关文章
相关标签/搜索