使用阿里读取 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。

浙公网安备 33010602011771号