Retrofit2之post 提交json字符串
关于Retrofit2 post 提交json字符串,我在这里举个小例子
eg:http://xxxxxx/login?”username”:”xxx”,”password”:”xxxxx”
假设请求url如上所示,{“username”:”xxx”,”password”:”xxxxx”}是请求的数据
我在用retrofit2 写请求时,是这么解决的
@POST(xxx)
Observab
原创
2017-04-20 21:27:57 ·
5296 阅读 ·
0 评论