The server refused this request because the request entity is in a format not supported by the request
原因是在前台JS中传值写错了,将要传的值全部写在大括号内
$http.post("../loginActionToJson.action",
{"loginId" : userDetails.loginId,
"password" : userDetails.password, "code" : userDetails.code})
.success(function(data, status,headers, config){
$scope.products = data;
console.log(data);
})