代码改变世界

随笔档案-2014年08月

Scala类基础

2014-08-29 18:31 by Rollen Holt, 658 阅读, 收藏, 编辑
摘要: 最近在开始学习Scala,本篇文章我们来讲解一下Scala中类的使用 class Counter { var defaultValue = 0 val valValue = 0 private var privateValue = 0 p... 阅读全文

Why TestNG?

2014-08-29 12:37 by Rollen Holt, 452 阅读, 收藏, 编辑
摘要: 最近计划将工程中的单元测试从JUnit迁移到TestNG上面。Why TestNG(http://kaczanowscy.pl/tomek/sites/default/files/testng_vs_junit.txt.slidy_.html#(1)) 阅读全文

no suitable HttpMessageConverter found for request type [java.lang.Integer]

2014-08-25 12:08 by Rollen Holt, 31919 阅读, 收藏, 编辑
摘要: 今天在使用`Spring Template`的时候遇到了这个异常: no suitable HttpMessageConverter found for request type [java.lang.Integer]Google了一下然后在stackoverflow上面找到了解决方案:I ha... 阅读全文

org.springframework.expression.spel.SpelEvaluationException: EL1005E:(pos 0): Type cannot be found

2014-08-21 21:52 by Rollen Holt, 10614 阅读, 收藏, 编辑
摘要: 今天在完成Spring项目的时候遇到了一个类似于下面的异常: 10.03.2010 13:53:53 org.apache.catalina.core.StandardWrapperValve invoke SCHWERWIEGEND: Servlet.service() for servlet d... 阅读全文

excel处理数字的时候避免自动转为double

2014-08-08 18:57 by Rollen Holt, 1219 阅读, 收藏, 编辑
摘要: 帮同事解决了一个POI解析Excel的功能,就是他想读出单元格中的原始内容,但是poi在处理数字的时候会自动转换为double了,这样对于一些对1和1.00有严格区分的场景下,会出现问题。我看网上很多人问这个,其实可以在读取这个单元格内容之前,先调用 cell.setCellType(Cell... 阅读全文

Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx': no matching editors or conversion strategy found

2014-08-04 16:20 by Rollen Holt, 70133 阅读, 收藏, 编辑
摘要: 今天在完成项目的时候遇到了下面的异常信息: 04-Aug-2014 15:49:27.894 SEVERE [http-apr-8080-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() f... 阅读全文