摘要:
该错误一般是编码带来的问题,比如在请求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号