I went through a lot of StackOverflow answers and googled a lot but still could not find why my post request is not working.
This is my jsp:
i think you should be sending data as
$http({ method : 'POST', url : 'login', data : {data: $scope.user}, headers: { 'Content-Type': 'application/json' } }).success(function(data) { console.log(data); });
pay attention to data : {data: $scope.user}
data : {data: $scope.user}