`
hqu_wxf
  • 浏览: 2469 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
文章分类
社区版块
存档分类
最新评论
文章列表
出了一个问题,在用Jackson将JSON转VO时,有个值set不进去,看同事调试,就是没看出来哪儿有问题。 中午吃完饭,回来,一看,那个VO的一个setter方法这样写的 public void setPk_indicator(String pk_indicator){ pk_indicator = pk_indicator; } 问题就出在这儿。上面的的pk_indicator如果前面没加this,指的就不是这个VO的成员变量,所以当然set不进去。 细节真的很重要。
<!-- - Configures Log4J for this web app. - As this context specifies a context-param "log4jConfigLocation", its file path - is used to load the Log4J configuration, including periodic refresh checks. - - Would fall back to default Log4J initialization (non-ref ...
今天做一个Spring的case。里面需要将一个表单对象保存为java对象,有一个Date型成员转换时报错: Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'birthDate': no matching editors or conversion strategy found] 我的Date属性转化如下定义: SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd" ...
Global site tag (gtag.js) - Google Analytics