【发布时间】:2013-10-30 11:51:57
【问题描述】:
我的界面如下:
@Rest(rootUrl = "https://myurl.com", converters = { GsonHttpMessageConverter.class })
public interface CommunicatonInterface
{
@Get("/tables/login")
public Login login(Param param);
public RestTemplate getRestTemplate();
}
问题是我应该把什么作为参数简单地放入正文:
login=myName&password=myPassword&key=othereKey
没有转义、括号或配额。
我尝试传递一个字符串,但我得到了:
"login=myName&password=myPassword&key=othereKey" 但由于配额标志,它是错误的。
【问题讨论】:
标签: java android spring resttemplate android-annotations