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

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。

posted @ 2022-08-19 11:42  niao66  阅读(607)  评论(0)    收藏  举报