
json
z294286540
这个作者很懒,什么都没留下…
展开
-
Request method 'GET' not supported
Tomcat 报错信息如下: HTTP Status 405 - Request method 'GET' not supported type Status report message Request method 'GET' not supported description The specified HTTP method is not allowed for the re原创 2012-06-22 17:46:14 · 40291 阅读 · 0 评论 -
在控制器查看json方式及查看json格式的方法
使用如下的方法可以在控制器里就查看json,看是否是自己需要的json ObjectMapper obj = new ObjectMapper(); String json=""; try { json = obj.writeValueAsString(acMap);//acMap为你要转化为json的东西,可以是一对象,也可以是一列表,也可以是一Map } catch原创 2012-07-30 10:00:25 · 2706 阅读 · 1 评论