
Java异常
文章平均质量分 53
记录平时遇到的异常
Yan Yang
奋斗
展开
-
Cannot get a STRING value from a NUMERIC cell poi异常解决
ref:http://www.tpyyes.com/a/kuozhan/2017/0902/199.htmlpoi导入excel表格数据时报java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell异常是因为在读取cell单元格字符串时,有number类型的数据,因此需要把它转化为纯String类型,这样就不会报错了。报错的地方类似于这样。//获取单元格XSSFCell cell = row.getCe转载 2021-06-04 22:25:04 · 2338 阅读 · 0 评论 -
Jackson 和 fastJSON 导包异常
内容一、异常信息HTTP Status 400 -type Status reportmessageorg.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type二、解决办法1、异常异常截图详细信息exceptionorg.springframework.http.converter.HttpMessage原创 2021-06-04 10:00:22 · 2400 阅读 · 0 评论 -
SpringMVC异常(404,接收参数类型转换错误)
内容一、异常信息HTTP Status 400 -type Status reportmessagedescription The request sent by the client was syntactically incorrect.Apache Tomcat/7.0.37二、解决办法1、造成原因SpringMVC 错误,由于前端界面传递错误参数类型给后台,后台就收参数后,转换参数类型失败导致。2、解决打开浏览器控制台,点击 network 查看传递的参数是什么,然后修原创 2021-05-27 21:23:05 · 2419 阅读 · 0 评论 -
Mybatis 异常(SQL 语法异常 ambiguous)
内容一、异常信息严重: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: ### Error querying database. Cause: com.mysq原创 2021-05-27 11:52:56 · 3904 阅读 · 0 评论