![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
json
燃烧的梦想是信仰(坤坤)
朋友多多快乐就好,一起分享,一起解决,一起快乐
展开
-
Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;问题解决
在我使用时间格式的Date传递参数时:会出现以下错误:- Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.util.Date'; nested exception is org.springframework.core.conv原创 2021-09-15 11:13:54 · 808 阅读 · 0 评论 -
请求传递head,body,利用map,jsonobject遍历获取key,value
@ApiOperation("test333ces") @RequestMapping("test333") public void test222(@RequestBody String str) { Map data = (Map) JSON.parse(str); Object body = data.get("body"); Object head = data.get("head"); JSONObject js..原创 2021-09-01 15:11:47 · 295 阅读 · 0 评论 -
jsonObject.entrySet()遍历获取字符串的key和value值
@ApiOperation("test222ces") @RequestMapping("test222") public void test222(@RequestBody String str) { String text ="{\"token\":\"1111\",\"content-type\":\"application/json\",\"id\":\"123123123123123\"}"; JSONObject jsonObject = J...原创 2021-09-01 14:51:34 · 5788 阅读 · 0 评论