可能對REST一個簡單的問題...春RESTful服務GET和POST方法
如何通過GET變量的函數是在下面的代碼
@GET
@Produces("application/json")
@Path("/loginresult.json/{userid}/{pwd}")
{
public List<SecurityBean> getAuthenticationResult(){
return authenticationAPI.getAuthenticationResult();
}
我wan't傳遞userid和pwd進入到getAuthenticationResult()函數的url
另外我怎樣才能傳遞POST參數?
非常感謝Yogesh ...不知道爲什麼,但努力找到一個教程告訴這....真的很有幫助 – antnewbee 2012-04-10 16:04:37
請問SpringFile中的@FormParam相當於什麼? – 2017-04-24 14:57:04