How to insert data using spring mvc and angularJS -
i want insert data database using angularjs , spring mvc, according tutorial did failed insert data database. controller : @requestmapping(value = "/add", method = requestmethod.post) public @responsebody string addemployee(@modelattribute(value="employee")employeeentity employee, bindingresult result) { employeemanager.addemployee(employee); return "redirect:/"; } jscode : $scope.insertdata = function(){ $http.post("http://localhost:9090/crudoperations/add", {"firstname":$scope.firstname}) .success(function(data,status,header,config) { console.log("inserted"); }); } jsp: <form:form class="form-horizontal" role="form" method="post" commandname="employee"> <div class="form-group col-lg-7" > <label for="email" class="control-label">first name...