I'm working with springboot angularsjs and restful.
my rest controller
@RequestMapping(value="/updatestructure/{ch}",method = RequestMethod.PUT)
public @ResponseBody Structurenotification updateStructure(@PathVariable(value="ch") StructureNotificationDto ch) {
return StructureNotif.update(ch);
}
the button
$scope.addstructure = function() {
$http.put('/structure/updatestructure/', $scope.element);
};
But I get this problem :
o.s.web.servlet.PageNotFound: Request method 'PUT' not supported