我在应用中用到Play! framework(2.0.4)作为rest服务。从android发送post请求后,在路径接受到错误信息。路径文件:
POST /addText/:txt controllers.Application.addText(txt: String)
android中的post请求:
int response = HttpRequest.post("localhost:9000/addtext/").send("txt=some text").code();
用的这个http请求。