首页 > 其他分享 >使用阿里读取 excel文件遇到的问题

使用阿里读取 excel文件遇到的问题

时间:2022-08-19 11:59:10浏览次数:38  
标签:lang exception 读取 数据库 excel 阿里 NullPointerException

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.excel.exception.ExcelAnalysisException: java.lang.NullPointerException] with root cause

java.lang.NullPointerException: null

 

没有将需要用到的对象注入到spring中管理,报空指针异常。

 

数据库中的number 中tinyint类型  实体自然生成 Integer 类型  使用时报 超出范围异常 

解决:直接将数据库中的数据类型改为int。

标签:lang,exception,读取,数据库,excel,阿里,NullPointerException
From: https://www.cnblogs.com/lcddup/p/16601501.html

相关文章