【发布时间】:2015-08-13 00:59:20
【问题描述】:
我在服务器上有弹簧控制器:
@RequestMapping(value = "/lab/getAlgo", method = RequestMethod.POST)
public @ResponseBody Algo14web getPicksByLeague(@RequestBody AlgoRequest request) {
...
类算法请求:
class AlgoRequest{
public int id;
public int limit; // I tried change to double and float too
}
还有 AngularJS:
$http.post(urlSer.url+"lab/getAlgo",{id:1,limit:2.5});
当客户端向服务器发送请求时得到Status 400 The request sent by the client was syntactically incorrect
【问题讨论】:
-
想知道
$http.post(urlSer.url+"/lab/getAlgo",{id:1,limit:2.5});是否可行
标签: javascript java angularjs spring