05 2018 档案

摘要:1、异常提示:Description Resource Path Location Type Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: Unable to load the mojo 'resources... 阅读全文
posted @ 2018-05-21 08:45 hapday 阅读(5354) 评论(0) 推荐(0) 编辑
摘要:1、异常提示:Cause: java.sql.SQLException: Column count doesn't match value count at row 1 ; bad SQL grammar []; nested exception is java.sql.SQLException: Column count doesn't match value count at row 1 ... 阅读全文
posted @ 2018-05-20 13:40 hapday 阅读(11155) 评论(0) 推荐(0) 编辑
摘要:1、异常提示:12:59:10.000 [http-nio-8080-exec-40] DEBUG o.s.j.s.SQLStateSQLExceptionTranslator - Extracted SQL state class 'HY' from value 'HY000' 12:59:10.000 [http-nio-8080-exec-40] DEBUG org.mybatis.spr... 阅读全文
posted @ 2018-05-20 11:03 hapday 阅读(3743) 评论(0) 推荐(0) 编辑
摘要:1、异常提示: org.apache.ibatis.binding.BindingException: Mapper method 'com.artup.dao.WorksDao.selectWorksIsCropCompletedById attempted to return null from a method with a primitive return type (byte).... 阅读全文
posted @ 2018-05-16 09:24 hapday 阅读(428) 评论(0) 推荐(0) 编辑
摘要:1、异常提示: java.lang.ArithmeticException: / by zero 2、原因: 当我们定义的被除数为整型时(short、int、long)会抛出此异常, 被除数为整型时不可为零。 3、解决办法: 检查整型的被除数。 阅读全文
posted @ 2018-05-16 00:54 hapday 阅读(84702) 评论(1) 推荐(1) 编辑
摘要:1、异常提示: java.lang.NumberFormatException: Infinite or NaN 2、原因:无法格式化的数字,此数字要么不是个数字,要么是无穷大的数字,从而导致 BigDecimal 无法对其解析。 3、解决办法:检查传入到 BigDecimal 的参数是不是数字,或者数字中含有空格。 阅读全文
posted @ 2018-05-16 00:43 hapday 阅读(24671) 评论(0) 推荐(1) 编辑
摘要:1、异常提示: DEBUG o.s.w.s.m.m.a.ServletInvocableHandlerMethod - Error resolving argument [2] [type=java.lang.Integer] HandlerMethod details: Controller [c 阅读全文
posted @ 2018-05-02 14:30 hapday 阅读(41341) 评论(0) 推荐(0) 编辑
摘要:表 A 中共有数据 738 条,表 B 中共有数据 16612 条,优化前查询耗时超过 1 分钟,优化后查询耗时缩减至 0.066 秒。经 EXPLAIN 分析发现,优化前 A 表和 B 表采用的是全表扫描的方式,优化后使用了索引从而使查询速度提升了 10 倍以上。优化方法:在 B 表中的外键中加入 阅读全文
posted @ 2018-05-02 14:26 hapday 阅读(1999) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示