摘要:
参考http://jackyrong.iteye.com/blog/1826699JAXB转换JAVA OBJECT到XML的时候,对java.util.Date的转换有些要注意的地方输出的格式为:2014-05-18T12:00:09+08:00希望能够自定义date的format,具体解决方法如... 阅读全文
posted @ 2014-05-29 21:33
dorothychai
阅读(1231)
评论(0)
推荐(0)
摘要:
该错误一般是编码带来的问题,比如在请求post的时候,使用了application/x-www-form-urlencoded的content type
那么请求传过来的string则需要用urlDecoder进行decode。否则就会报上述错误 body = java.net.URLDecoder.decode(body, "UTF-8");
Source source = new Strea... 阅读全文
posted @ 2014-05-29 21:14
dorothychai
阅读(307)
评论(0)
推荐(0)
摘要:
Mybatis自动生成代码,需要用到mybatis Generator,详见http://mybatis.github.io/generator/configreference/generatedKey.html
insert语句如果要返回自动生成的key值,一般会在insert里加入useGeneratedKeys属性,例如 insert into subtasks (SID, TI... 阅读全文
posted @ 2014-05-29 21:10
dorothychai
阅读(8979)
评论(0)
推荐(1)

浙公网安备 33010602011771号