NutzCN Logo
问答 json适配器的问题
发布于 1785天前 作者 qq_4ad560c4 1336 次浏览 复制 上一个帖子 下一个帖子
标签:

这是方法:

public Object republishOrder(@Param("orderId") String orderId,@Param("orderEntries")List<logistics_orderentry> orderEntries)

ios那边字段都能对应上,orderId可以接收到,但是 集合一直是null,换成数组也是null。

6 回复

content type设置了吗?

是说传的那一端?不知道ios
后台用的是这个注解:

@AdaptBy(type= JsonAdaptor.class)

ios那端

入口方法加个request参数,打印一下headers

content-type=application/x-www-form-urlencoded; 

嗯, 得设置的, 并确保发送的是json字符串

添加回复
请先登陆
回到顶部